Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: encryption encrypt a string
TestEncryption.wbt - shows you how it works CreateKey.wbt - creates a new key Decrypt.wbt - include this in a script that requires decryption of an encrypted string Encrypt.wbt - inclue this in a script that requires encryption of a decrypted string. EncryptionKey.wbt - created by CreateKey.wbt - must be included in Decrypt.wbt and Encrypt.wbtEncrypt.Wbt requires one variable - ClearText - it returns one variable - EncryptedText
Decrypt.wbt requires one variable - EncryptedText - it returns one variable - ClearText.
Advantage of this system - encrypted text is always an uppercase letter - allowing you to write the encrypted text to a file - it does not use non-printable ascii characters from the encrypted text.
Here's a slightly improved version. By changing the astring variable in the createkey script you can make the code harder or easier to crack.
encryption.zip
Article ID: W14724
Filename: Encrypt a String.txt
File Created: 2019:08:14:09:34:20
Last Updated: 2019:08:14:09:34:20