advertisement

Find Code  Advanced Search   

browse free vb code
Submit Code
ASP,  HTML, and XML
Database
Dates  and Math
Files  and Directories
Forms  and Controls
Lists,  Collections, and Arrays
Miscellaneous
Multimedia/Games
Office/VBA
Network/Internet
Registry
Screen/Graphics
String  Manipulation
System/API
Windows  2000/XP
VB.NET/ASP.NET



advertisement
Encryption/Decryption Alogorithm Based on ASCII Values

Author: Ryan Conrad
Category: String Manipulation
Type: Snippets
Difficulty: Intermediate

Version Compatibility:  Visual Basic 5   Visual Basic 6

More information: This is an encryption written method that takes the 'Key' and converts each character to its ASCII value and (depending on the last total) add/subtracts the current value to the total. It then takes the string to encrypt and converts each character in the string to its ASCII value and adds the final key total.(to return something like '402 432 399 421') It then takes those 3 digit numbers and breakes them down into 2 digit numbers and adds 100(so the will be vallid characters) and returns '140 124 132 139 194 121'. Then it converts those values to the ASCII character from the value.

If the receiving party does not know the 'Key' They WILL NOT be able to decrypt the string.

This code has been viewed 84375 times.

Instructions: Copy the declarations and code below and paste directly into your VB project.


Declarations:

Code:

No Text Boxes

Sponsored Links

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs