US Secure Hash Algorithm 1 (SHA1)
Implementation based on algorithm description at
http://www.faqs.org/rfcs/rfc3174.html
public static var digest:ByteArray
public static function hash(s:String):String
Performs the SHA1 hash algorithm on a string.
Parameters
| s:String — The string to hash
|
Returns
| String — A string containing the hash value of s
|
public static function hashBytes(data:ByteArray):String
Performs the SHA1 hash algorithm on a ByteArray.
Parameters
| data:ByteArray — The ByteArray data to hash
|
Returns
| String — A string containing the hash value of data
|
public static function hashToBase64(s:String):String
Performs the SHA1 hash algorithm on a string, then does
Base64 encoding on the result.
Parameters
| s:String — The string to hash
|
Returns
| String — The base64 encoded hash value of s
|