Packagecom.adobe.crypto
Classpublic class SHA1

US Secure Hash Algorithm 1 (SHA1) Implementation based on algorithm description at http://www.faqs.org/rfcs/rfc3174.html



Public Methods
 MethodDefined by
  
hash(s:String):String
[static] Performs the SHA1 hash algorithm on a string.
SHA1
  
hashToBase64(s:String):String
[static] Performs the SHA1 hash algorithm on a string, then does Base64 encoding on the result.
SHA1
Method detail
hash()method
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
hashToBase64()method 
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