Skip to main content
make the title more descriptive
Link
Ilmari Karonen
  • 46.5k
  • 5
  • 111
  • 187

Naive homemade symmetric crypto Can I use PBKDF2 as a stream cipher?

Tweeted twitter.com/StackCrypto/status/812461238663913475
deleted 11 characters in body
Source Link
e-sushi
  • 18.1k
  • 12
  • 85
  • 235

Unfortunately I have to implement some naive homemade symmetric crypto, since ordinary AES CTR is not implemented in available API on target platform.

What I’m going to do is, given encryption password and plaintext bytes, generate “encryption key” from password via PBKDF2/RFC 2898 with length of plaintext, and then xorXOR this “gamma” against plaintext bytes.

Could you please criticize this approach and enumerate vulnerabilities and issues?

Thanks!

Unfortunately I have to implement some naive homemade symmetric crypto, since ordinary AES CTR is not implemented in available API on target platform.

What I’m going to do is, given encryption password and plaintext bytes, generate “encryption key” from password via PBKDF2/RFC 2898 with length of plaintext, and then xor this “gamma” against plaintext bytes.

Could you please criticize this approach and enumerate vulnerabilities and issues?

Thanks!

Unfortunately I have to implement some naive homemade symmetric crypto, since ordinary AES CTR is not implemented in available API on target platform.

What I’m going to do is, given encryption password and plaintext bytes, generate “encryption key” from password via PBKDF2/RFC 2898 with length of plaintext, and then XOR this “gamma” against plaintext bytes.

Could you please criticize this approach and enumerate vulnerabilities and issues?

added 3 characters in body
Source Link

Looks likeUnfortunately I have to implement some naive homemade symmetric crypto, since ordinary AES CTR is not implemented in available API on target platform.

What I’m going to do is, given encryption password and plaintext bytes, generate “encryption key” from password via PBKDF2/RFC 2898 with length of plaintext, and then xor this “gamma” against plaintext bytes.

Could you please criticize this approach and enumerate vulnerabilities and issues?

Thanks!

Looks like I have to implement some naive homemade symmetric crypto, since ordinary AES CTR is not implemented in available API on target platform.

What I’m going to do is, given encryption password and plaintext bytes, generate “encryption key” from password via PBKDF2/RFC 2898 with length of plaintext, and then xor this “gamma” against plaintext bytes.

Could you please criticize this approach and enumerate vulnerabilities and issues?

Thanks!

Unfortunately I have to implement some naive homemade symmetric crypto, since ordinary AES CTR is not implemented in available API on target platform.

What I’m going to do is, given encryption password and plaintext bytes, generate “encryption key” from password via PBKDF2/RFC 2898 with length of plaintext, and then xor this “gamma” against plaintext bytes.

Could you please criticize this approach and enumerate vulnerabilities and issues?

Thanks!

added 3 characters in body; edited tags
Source Link
Loading
Source Link
Loading