//ERDDAP/com.cohort.util/ScriptString2/passwordDigest
passwordDigest
[JVM]
open fun passwordDigest(algorithm: String, password: String): String
This returns the hash digest of stringToUtf8Bytes(password) as a String of lowercase hex digits. Lowercase because the digest authentication standard uses lower case; so mimic them. And lowercase is easier to type.
Return
the algorithm's hash digest of the password (many lowercase hex digits, as a String), or null if password is null or there is trouble.
Parameters
JVM
algorithm | one of the FILE_DIGEST_OPTIONS {"MD5", "SHA-1", "SHA-256", "SHA-384", "SHA-512" }; |
password | the text to be digested |