How to use a custom key in Crypto++
问题 I have a question referring to the encryption code in this question: Crypto++ encrypt and decrypt in two different c++ programs If I want to use a custom key/iv, how can I do this? 回答1: If I want to use a custom key/iv, how can I do this? Just plug it into a cipher with a mode. There are plenty of modes to choose from, but you should use an authenticated encryption mode like EAX, CCM or GCM. See Category:Mode for discussion of the modes in Crypto++. The code below takes a password or secret,