2
我使用as3Crypto解密用没有probs http://www.zedia.net/2009/as3crypto-and-php-what-a-fun-ride/使用as3Crypto加密/不含和符号
但后来我看到一些特殊的字符,我意识到我可能会遇到与符号。 这是一个痛苦,因为它们将被插入到查询字符串中。 有没有办法确保as3Crypto加密不会产生&符号?
public function encrypt(txt:String = ''):String
{
var data:ByteArray = Hex.toArray(Hex.fromString(txt));
var pad:IPad = new PKCS5;
var mode:ICipher = Crypto.getCipher(type, key, pad);
pad.setBlockSize(mode.getBlockSize());
mode.encrypt(data);
return ''+Base64.encodeByteArray(data);
}
啊,我明白了。 Google搜索[this](http://www.stylusstudio.com/xmldev/200101/post70260.html)。谢谢! – 2012-02-28 16:52:06
b,你得到=虽然:P – 2012-02-28 17:20:24