package burp;

/**
 * HashAlgorithmName.SHA_256.getValue() = SHA-256
 * HashAlgorithmName.SHA_256.toString() = SHA_256
 */
public enum HashAlgorithmName {
	MD5("MD5"), SHA_1("SHA-1"), SHA_224("SHA-224"), SHA_256("SHA-256"), SHA_384("SHA-384"), SHA_512("SHA-512");

	public static HashAlgorithmName getName(String text) {
		return valueOf(text.replaceAll("-", "_").toUpperCase());
	}

	public final String text;

	private HashAlgorithmName(String text) {
		this.text = text;
	}

	public String getValue() {
		return text;
	}
};

@@ -57,16 +57,17 @@
 () =
+=
  SHA-256
 %0A * 
@@ -62,16 +62,21 @@
  SHA-256
+%3Cbr/%3E
 %0A * Hash
@@ -109,24 +109,25 @@
 ring() =
+=
  SHA_256
 %0A */%0Apub
@@ -118,16 +118,146 @@
  SHA_256
+%3Cp%3E%0A * %0A * HashAlgorithmName han = HashAlgorithmName.SHA_1;%3Cbr/%3E%0A * MessageDigest md = MessageDigest.getInstance(han.getValue()); 
 %0A */%0Apub

document HashAlgorithmName