Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    Senior Coder
    Join Date
    Apr 2003
    Location
    England
    Posts
    1,192
    Thanks
    5
    Thanked 13 Times in 13 Posts

    AES exchanging IVs

    If I want to encrypt and later decrypt something with AES (CBC mode) I need to have a key and an initial vector (IV).

    I can keep the key secret (it is only me that will be encrypting and decrypting) as much as I could keep a private key secret in asymmetric encryption. The problem is the IV. Should I use the same IV every time (that really can't be a good idea) or should I put the IV in with the encrypted data (that also can't be a very good idea).

    The only other alternative I can think of is using asymmetric encryption for the IV so that only I can decrypt it.


    What is the normal approach to this?
    Last edited by ghell; 09-10-2008 at 03:03 PM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •