Encryption Demo


This sample is provided to demonstrate the results of the different types of encryption. The application consists of a single form that allows you to enter plain text. The application will generate a hash digest, encrypt with a private key, and encrypt with a public key. The application is shown in Figure A-11.

click to expand
Figure A-11: Encryption Demo

Clicking the Create Hash button generates a SHA1 hash digest for the plain text and displays the result next to the Create Hash button. Clicking the Private Key Encrypt button encrypts the plain text using the Triple-DES algorithm, and shows the result in the Cipher Text textbox, and then decrypts the cipher text and displays the result in the Decrypt textbox. Clicking the Create Public Key button creates a new public/private key pair and displays it in the Key Pair textbox. Clicking the Public Key Encrypt button encrypts the plain text using the RSA algorithm and displays the result in the Cipher Text textbox, and then decrypts the cipher text and displays the result in the Decrypt textbox.




Security for Microsoft Visual Basic  .NET
Security for Microsoft Visual Basic .NET
ISBN: 735619190
EAN: N/A
Year: 2003
Pages: 168

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net