I m trying to encrypt a string with rijndael (keysize 256 bit, blocksize 256 bit, CFB mode) currently i m doing something like this:
BufferedBlockCipher c = new BufferedBlockCipher(new CFBBlockCipher(new RijndaelEngine(256), 256));
c.init(false, new ParametersWithIV(new KeyParameter(keybytes), iv));
我可以进行加密和加密,而我自己的脚.只是罚款。 不幸的是,必须加以加密的地体源自于实验室的加密。
I cant decrypt this string and i guess the failure is on my side. could anybody give me an example how to configure a cipher with the required parameters?
http://www.un.org。
遵循此处和在网址文件评论中的一些建议。 i 改变我的圈子:
PaddedBufferedBlockCipher c = new PaddedBufferedBlockCipher(new CFBBlockCipher(new RijndaelEngine(256)), new ZeroBytePadding());
加密仍不兼容。
<EDIT 2
它采用CBC模式开展工作。 我猜想这个问题在四处。