public byte[] CryptDeriveKey(
string algname,
string alghashname,
int keySize,
byte[] rgbIV
)
Can someone please enlighten me as to what options there are in algname? If I want to specify an encryption algorithm for AES-128 and AES-256, what should I put in the algname?
I’m not 100% sure but,
algnameis your algorithm name.keySizeis size of the key.You should use
AES-128andAES-256like this;and
Check out for more details from
MSDN.Here is a decompiled code for
PasswordDeriveBytes.CryptDeriveKeymethod.Here is a decompiled code of
NameOrOidToAlgIdmethod.