| Package | calista.hash |
| Class | public class SHA256 |
| Inheritance | SHA256 Object |
Original Javascript implementation :
Chris Veness, Movable Type Ltd: www.movable-type.co.uk
See http://www.movable-type.co.uk/scripts/sha256.html
Example :
import calista.hash.SHA256 ;
var hash:String = SHA256.encrypt("calista") ;
var equal:Boolean = hash == 'c37a4150a942afb4b36dd5c85ac744a16de0891c99d418ae7b5ef528dfcf2e9d' ;
trace("'hello world' SHA1 result : " + hash + " : " + equal ) ;
| Method | Defined By | ||
|---|---|---|---|
encrypt(source:String):String [static]
Encrypt the specified text with the SHA-256 algorithm. | SHA256 | ||