Are there native .NET 2.0 library to decrypt CAPICOM data or I must have
import CAPICOM interop and use this one?
Example of VB.NET encryption:
Dim message As New EncryptedData
message.Content = txtPrefix.Text & cbId.Text & txtHodnota
message.SetSecret txtPwd.Text
message.Algorithm.Name = CAPICOM_ENCRYPTION_ALGORITHM_DES
CryptMsg message.Encrypt
Example of VB.NET decryption:
Set message = New EncryptedData
message.SetSecret mvarKreditVerze
message.Decrypt "Key"
DecryptMsg = message.Content
Karel Kral
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Karel Kral" <kral...@volny.cz> wrote in message
news:%23y7VPxx...@TK2MSFTNGP04.phx.gbl...
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Karel Kral" <kral...@volny.cz> wrote in message
news:%23CR1wC8...@TK2MSFTNGP03.phx.gbl...
Yes, this is exactly my case. The bigger part of our app is VB6 and must
to use CAPICOM. So newer .NET part must adapt to these crypted data data.