469,356 Members | 2,010 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,356 developers. It's quick & easy.

CryptoAPI and .net

Hi,

I have a requirement to develop an component in VC++ and .net for encryption/decryption. I am deriving a key from a password.
But when i encrypt the data VC++(cryptoapi) component and .net are giving different output. how can i resolve this. In. .net component i am using "PasswordDeriveBytes" class to generated the key.
algorithm used in "RC2" and Hash used in MD5.
Pleae help
Jan 20 '08 #1
1 1681
sorry guys,

I got the answer. I made mistake forgetting that effective key length for RC2 in CryptoAPI is 40(default). I have reset the value to 128 to mathch with default value in .NET(RC2CryptoServiceProvider). Problem got resolved.

Thanks,

MichaelAni
Jan 23 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Andy Atherton | last post: by
reply views Thread by Kim HM | last post: by
3 posts views Thread by Michael Bebenita | last post: by
1 post views Thread by Greg Merideth | last post: by
reply views Thread by Bonj | last post: by
reply views Thread by =?Utf-8?B?VmVuZWRpY3Q=?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.