Skip to main content
edited tags
Link
Ilmari Karonen
  • 46.5k
  • 5
  • 111
  • 187

I'm encrypting some files using AES in CBC mode.
I'm

I'm also using file's digest (SHA-1) to check that data is decrypted correctly (so iI need to store it with file).
Is

Is it safe to use this digest as AES's IV and store it in the header of file?
Or Or it has security issue?

Thanks

I'm encrypting some files using AES in CBC mode.
I'm also using file's digest (SHA-1) to check that data is decrypted correctly (so i need to store it with file).
Is it safe to use this digest as AES's IV and store it in the header of file?
Or it has security issue?

Thanks

I'm encrypting some files using AES in CBC mode.

I'm also using file's digest (SHA-1) to check that data is decrypted correctly (so I need to store it with file).

Is it safe to use this digest as AES's IV and store it in the header of file? Or it has security issue?

Tweeted twitter.com/#!/StackCrypto/status/245084775935774720
added 12 characters in body
Source Link
Ariyan
  • 351
  • 3
  • 8

I'm encrypting some files using AES in CBC mode.
I'm also using file's digest (SHA-1) to check that data is decrypted correctly (so i need to store it with file).
Is it safe to use this digest as AES's IV and store it in the header of file?
Or it has security issue?

Thanks

I'm encrypting some files using AES.
I'm also using file's digest (SHA-1) to check that data is decrypted correctly.
Is it safe to use this digest as AES's IV and store it in the header of file?
Or it has security issue?

Thanks

I'm encrypting some files using AES in CBC mode.
I'm also using file's digest (SHA-1) to check that data is decrypted correctly (so i need to store it with file).
Is it safe to use this digest as AES's IV and store it in the header of file?
Or it has security issue?

Thanks

Source Link
Ariyan
  • 351
  • 3
  • 8
Loading