Questions tagged [cfb-mode]
10 questions
5
votes
1 answer
Encrypt in python and decrypt in Java with AES-CFB
I am aware of a question very similar to this (How do I encrypt in Python and decrypt in Java?) but I have a different problem.
My problem is, I am not able to decrypt in Java correctly. Despite using the correct key and IV, I still get garbage…

Srikanth Kandalam
- 965
- 3
- 15
- 26
3
votes
0 answers
How do I use bouncyCastle's CfbBlockCipher?
I am trying to decrypt data that is encrypted with AES in CFB mode using bouncy castle. I am having a hard time.
I have some Java code that initalizes a StreamBlockCipher with a CFBBlockCipher that contains the AESEngine that I use as a…

Ziv
- 2,755
- 5
- 30
- 42
1
vote
1 answer
Crypto++ : CFB_Mode_ExternalCipher not working
This is how the code look likes. Is there anything wrong with this.
The recover text does not match.
AES::Encryption aes1(key, key.size());
CFB_Mode_ExternalCipher::Encryption cfbEncryption(aes1, iv);
AES::Decryption aes2(key,…

Jinto Jose
- 21
- 4
1
vote
1 answer
Which openssl command is equivalent to DES_cfb64_encrypt function?
I am trying to decrypt programmatically encrypted file using OpenSSL. OpenSSL was used to encrypt the file and I know both the function and the key that was used:
//This declaration is just figurative
const char keybuf = "12345678";
// Prepare the…

Tomáš Zato
- 50,171
- 52
- 268
- 778
0
votes
1 answer
IDEA/CFB mode decryption and corrupted block
I'm trying to understand the OpenSSL library. I have written a program in C which should decrypt an IDEA/CFB mode encrypted using OpenSSL 1.1.0g. This is the code so far:
#include /* O_RDONLY */
#include …

Twin322
- 170
- 1
- 8
0
votes
0 answers
CFB encryption in Java vs Python is not the same
I have AES encryption and decryption code in Java and Python. While both of them are able to perform encryption / decryption correctly, the encrypted output from both is different.
Java code:
import javax.crypto.Cipher;
import…

Urmil Parikh
- 323
- 3
- 11
0
votes
1 answer
AES/CFB Cipher mode decrypting from the string fail
Seems like I misunderstand how is CFB cipher mode works. This leads to an error. Approaches 1 and 2 do not work because I am reading encrypted text from a created string. But approach 3 works because it gets crypted text from c string just…

Wallstrider
- 856
- 1
- 7
- 22
0
votes
2 answers
mcrypt_encrypt in CFB mode function in CryptoJS
I'm trying to convert an mcrypt_encrypt function written in php to node.js, I am using CryptoJS in node.js and tried all kinds of config options and I am not having any luck figuring this thing out.
PHP…

Prashanth Kumar B
- 566
- 10
- 25
0
votes
1 answer
How to implement CFB8 mode with Triple DES for decryption using CryptoJS
I have to decrypt the data which encrypted in java server.
In java server encrypted text using triple des(mode:CFB8, padding:NoPadding)
For decrypt, I tried encrypting such as java server
Below is posted the java source code.
private final static…

shen jing
- 3
- 4
-1
votes
1 answer
java AES_CFB Mode decryption not in stream mode
Cipher cipher = Cipher.getInstance("AES/CFB128/NoPadding");
SecretKeySpec keySpec = new SecretKeySpec("1234567890123456".getBytes(), "AES");
byte[] iv = "1234567890123456".getBytes();
cipher.init(Cipher.ENCRYPT_MODE, keySpec, new…

Wei Jian Guo
- 123
- 1
- 10