Packagecalista.hash
Classpublic class MD5
InheritanceMD5 Inheritance Object

Encrypt a string with the MD5 algorithm.

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
     



Public Methods
 MethodDefined By
  
encrypt(source:String):String
[static] Encrypt the specified text with the MD5 algorithm.
MD5
Method Detail
encrypt()method
public static function encrypt(source:String):String

Encrypt 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

Returns
String