How to generate same symmetric key using same password and salt when using CryptNG

100 Views Asked by At

I am using Microsoft bcrypt (aka BestCrypt, Cryptgraphy Next Generation, Cryptography NG, CryptNG) library to generate symmetric keys:

But every time I get a different key. Even when the password and salt are the same. Is there any randomization added by these APIs?

If yes, What is the way to generate the same symmetric keys using the same entropy?

I tried below APIs:

0

There are 0 best solutions below