Package com.couchbase.client.java.util
Class DigestUtils
java.lang.Object
com.couchbase.client.java.util.DigestUtils
@Private public class DigestUtils extends Object
Utility methods around hashes, message digests, etc...
- Since:
- 2.2
- Author:
- Simon Baslé
-
Method Summary
Modifier and Type Method Description static String
digestSha1Hex(String source)
Hashes the source with SHA1 and returns the resulting hash as an hexadecimal string.
-
Method Details
-
digestSha1Hex
Hashes the source with SHA1 and returns the resulting hash as an hexadecimal string.- Parameters:
source
- the text to hash.- Returns:
- the SHA1 hash of the source, in hexadecimal form.
-