• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

DPAPI & .NET

scotspine

Contractor Among Contractors
Joined
Jul 6, 2005
Messages
1,053
Likes received
3
Thanks received
3
anyone used this to retrieve a key from the registry? i have a DPAPI encrypted key in the registry but when i try to retrieve it as a byte array for the IV for 3DES i get a length error...going grey and hairless
 
What's the exact error message? I had some problems in .NET with triple DES too and vaguely remember something like this happening.
 
Specified initialization vector (IV) does not match the block size for this algorithm
 
but key size is 16bytes and iv size is 8 bytes
 
if i don't encrypt the iv, it works, if i encrypt, it falls over. yet i successfully rebuild the iv from decrypt!!
 
oops sorry I forgot about this thread, I think I had it before too, looks like you figured it out as well
 

Advertisers

Back
Top