0
看起来我只限于GAE上的128位AES加密。以下代码将引发InvalidKeyException(非法密钥大小),看起来像在未安装无限安全策略时发生这种情况。如何在Google App Engine上使用AES-256加密?
Cipher cipher = Cipher.getInstance("AES");
SecretKey key = new SecretKeySpec(new byte[64], "AES"); // 256 bit key for AES
cipher.init(Cipher.ENCRYPT_MODE, key);
有人知道吗?
根据这个,不能这样做:http://code.google.com/p/memwords/wiki/Gotchas#Google_App_Engine_and_AES-256 – Bob
AES的任何256位替代方案都适用于GAE? – Bob
只需使用128位AES。顺便说一下,你知道64个字节是512位,对吧? –