Rijndael algorithm (How to create our own Key )

前端 未结 3 536
自闭症患者
自闭症患者 2021-02-10 09:23

All the samples for Rijndael algorithm are defining the key from the Rijndael class itself, can\'t we provide the Key of our own. Any hint on this will help me a lot.

Th

3条回答
  •  Happy的楠姐
    2021-02-10 09:27

    The key property of the Rijndael instance takes a byte[] as the key. Make sure you set it to an array with a valid size for the algorithm.

    Link to msdn: http://msdn.microsoft.com/en-us/library/system.security.cryptography.symmetricalgorithm.key.aspx

提交回复
热议问题