ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
mx.data.crypto 

SHA256  - AS3 ADEP Data Services

Packagemx.data.crypto
Classpublic class SHA256
InheritanceSHA256 Inheritance Object

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 3.1
Runtime Versions: Flash Player 9, AIR 1.1

The SHA-256 algorithm

Learn more



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  digest : ByteArray
[static] The SHA-256 digest.
SHA256
Public Methods
 MethodDefined By
  
[static] Performs the SHA256 hash algorithm on a string.
SHA256
  
[static] Performs the SHA256 hash algorithm on a ByteArray.
SHA256
  
[static] Performs the SHA256 hash algorithm on a string, then does Base64 encoding on the result.
SHA256
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

digest

property
public static var digest:ByteArray

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 3.1
Runtime Versions: Flash Player 9, AIR 1.1

The SHA-256 digest.

Method Detail

hash

()method
public static function hash(s:String):String

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 3.1
Runtime Versions: Flash Player 9, AIR 1.1

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

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 3.1
Runtime Versions: Flash Player 9, AIR 1.1

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

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Data Services for Java EE 3.1
Runtime Versions: Flash Player 9, AIR 1.1

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