How to create Encryption Key for Encryption Algorithms?
        Posted  
        
            by Akash Kava
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Akash Kava
        
        
        
        Published on 2010-03-23T20:38:49Z
        Indexed on 
            2010/03/23
            20:43 UTC
        
        
        Read the original article
        Hit count: 464
        
I want to use encryption algorithm available in .Net Security namespace, however I am trying to understand how to generate the key, for example AES algorithm needs 256 bits, that 16 bytes key, and some initialization vector, which is also few bytes.
- Can I use any combination of values in my Key and IV? e.g. all zeros in Key and IV are valid or not? I know the detail of algorithm which does lots of xors, so zero wont serve any good, but are there any restrictions by these algorithms? 
- Or Do I have to generate the key using some program and save it permanently somewhere? 
© Stack Overflow or respective owner