Packagecom.adobe.crypto
Classpublic class SHA256

The SHA-256 algorithm

See also

http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf


Public Properties
 PropertyDefined by
  digest : ByteArray
[static]
SHA256
Public Methods
 MethodDefined by
  
hash(s:String):String
[static] Performs the SHA256 hash algorithm on a string.
SHA256
  
hashBytes(data:ByteArray):String
[static] Performs the SHA256 hash algorithm on a ByteArray.
SHA256
  
hashToBase64(s:String):String
[static] Performs the SHA256 hash algorithm on a string, then does Base64 encoding on the result.
SHA256
Property detail
digestproperty
public static var digest:ByteArray
Method detail
hash()method
public static function hash(s:String):String

Performs the SHA256 hash algorithm on a string.

Parameters
s:String — The string to hash

Returns
String — A string containing the hash value of s
hashBytes()method 
public static function hashBytes(data:ByteArray):String

Performs the SHA256 hash algorithm on a ByteArray.

Parameters
data:ByteArray — The ByteArray data to hash

Returns
String — A string containing the hash value of data
hashToBase64()method 
public static function hashToBase64(s:String):String

Performs the SHA256 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