code: public static String normalizeKey(Algorithms alg) {
          if (alg.equals(Algorithms.SHA512)) {
              return FieldName.SHA512;
          }
          return alg.toString().toLowerCase();
      }
docs: Handles difference in the keys used for algorithms
  
  @param alg
  @return