Search code examples
c#vb6encryption

Encrypting and decrypting strings


Does anyone know of a good way to encrypt and decrypt strings using VB6 to ensure sensitive data is secure?

Also, is there an encryption method that can be shared between VB6 and .NET? Example:

The encrypted string will be written to a database using a VB6 application, but the value also need to be read an decrypted in a c# .net application using the .net framework if possible.

Thanks!


Solution

  • Have you looked at System.Security.Cryptography?

    http://msdn.microsoft.com/en-us/library/system.security.cryptography.aspx

    I would look at the AesCryptoServiceProvider.