Thursday, July 30, 2009

What's the simplest way to encrypt a string in Visual Basic 2008?

I'm not looking for any real strong encryption, but just a way to change a string based on any given key.

What's the simplest way to encrypt a string in Visual Basic 2008?
Exclusive Or (XOR) each character's ASCII value with the length of the string. It's not as easy to break as it sounds, because the method of encryption isn't evident.





Blowfish is probably a lot better, though (it's a LOT stronger) and algorithms written in VB are available on the web.
Reply:Depends what algorithm(s) you want and how sophisticated your grasp of the principles and VB, but there's lots of code freely available on the web.





RC4:


http://www.freevbcode.com/ShowCode.asp?I...





AES, DES, and others:


http://www.codearchive.com/list.php?go=0...





There's also a site discussing and providing API info at:


http://www.cryptovb.com/home/home.html


No comments:

Post a Comment