3DES-CBC padding mode

M

mike

i need to write a function that for encryption and decryption in .net.
the server i need to communicate is 3DES-CBC padding mode: PKCS#5
but i find that in . net, it only has PKCS#7,
if i use pkcs#7 to communicate with the server that use PKCS#5, is
there any problem?

and when i surfing in google, someone post that :
CAPI uses pkcs5 padding (incorrectly called pkcs7 padding in .NET
docs).
I have encrypted with capi using this and any IV using CryptEncrypt and



have been able to decrypt with .NET and Java both.


is .net use pkcs5 that miscall #7?


and is there any library can help me just call and encrypt and decrypt
for me?


If anyone know, pls anwser
i will very ths for your suggestion
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top