'CNG Bcrypt.h generate repeated key
I would like to encrypt data using the BCryptEncrypt function. To generate, I use the BCryptGenerateSymmetricKey function, but it is required that the key be predictably repeatable for re-generation on another machine, in other words, I want the random key to be excluded when generating the key for BCryptEncrypt, allowing you to get identical keys on two different machines with the same reference information entered (salt) to generate.
Also wondering if it is possible to directly modify the generated key and insert the desired key directly, mean using the BCryptGenerateKeyPair function in some way to copy the previously created manually bit key into the structure.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
