| Package | calista.hash |
| Class | public class MD5 |
| Inheritance | MD5 Object |
MD5 Message Digest Algorithm, as defined in RFC 1321.
Example :
import calista.hash.MD5 ;
var hash:String = MD5.encrypt("calista") ;
var equal:Boolean = hash == '93fc1e28bc17af6420552b746af10f4f' ;
trace("'calista' MD5 result : " + hash + " : " + equal ) ;
// 'calista' MD5 result : 93fc1e28bc17af6420552b746af10f4f : true
| Method | Defined By | ||
|---|---|---|---|
encrypt(source:String):String [static]
Encrypt the specified text with the MD5 algorithm. | MD5 | ||
| encrypt | () | method |
public static function encrypt(source:String):StringEncrypt the specified text with the MD5 algorithm.
Example :
import calista.hash.MD5 ;
var hash:String = MD5.encrypt("calista") ;
var equal:Boolean = hash == '93fc1e28bc17af6420552b746af10f4f' ;
trace("'calista' MD5 result : " + hash + " : " + equal ) ;
Parameters
source:String |
String |