|
|
|
|
|
- Encrypting and decrypting a character string
Encrypting and decrypting a character string The following example is used to encrypt and decrypt a character string. // Declare and initialize the variables StringToEncrypt is string = "The number of my account in Switzerland is 74538290" Password is string = "JamesBond007" EncryptedString is string DecryptedString is string // Encrypt the message EncryptedString = Encrypt(StringToEncrypt, Password, cryptSecure) // Send the message by email for example ... // Decrypt the message later DecryptedString = Decrypt(EncryptedString, Password, cryptSecure) Info("The encrypted message meant: " + DecryptedString)
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|