This sample demonstrates how to encrypt and decrypt data using the TwoFish encryption method.
Project path: Samples\ASP\EncryptDecrypt
Project file name: EncryptDecrypt.asp
Properties: HashingMethod, EncryptionMode, PaddingMethod and EncryptionMethod
Method: Encrypt, Decrypt and SetSecretKeyFromPassPhrase
Provide a pass phrase and secret key size that will be used to create a secret key that will be used to encrypt data.
Enter the text to encrypt in the "Data to encrypt" text box and press the "Encrypt" button. The encrypted data will then appear in the "Encrypted data" text box and can be decrypted by pressing the "Decrypt" button.