eu.scape_project.core.utils
Class DigestUtilities
java.lang.Object
eu.scape_project.core.utils.DigestUtilities
public final class DigestUtilities
- extends Object
- Author:
- Carl Wilson carlwilson-bl@SourceForge carlwilson-bl@github
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
byteDigestToHexString
public static final String byteDigestToHexString(byte[] digest)
- Parameters:
digest
- The digest value as a byte array
- Returns:
- the digest as a hex java.lang.String
- Since:
- 1.1
hexStringToByteArray
public static byte[] hexStringToByteArray(String hexVal)
- Parameters:
hexVal
- a java.lang.String hex representation of a digest
- Returns:
- the byte[] representation of the digest
getMessageDigestAlgorithmNames
public static Set<String> getMessageDigestAlgorithmNames()
- Returns:
- the string names of the Message Digest algorithms supported by java
Copyright © 2013. All Rights Reserved.