Equivalent of md5(uniqid(mt_rand())) in as3?
W开发者_如何学JAVAhat is the equivalent of md5(uniqid(mt_rand()))
in actionscript 3.0?
In addition to the md5 library from as3corelib, you'll want a guid library like this one at rgbeffects
import com.adobe.crypto.MD5;
import com.rgbeffects.GUID;
var hash:String = MD5.hash(GUID.create());
ActionScript doesn't have an md5 encryption method for whatever reason. However you can find several AS libraries that include md5. Try as3corelib for starters.
精彩评论