Tutorials Forums
     Tutorials Videos
        Sign Up Now For FREE
Welcome, Guest
Username Password: Remember me

Encryption in just 5 lines of code
(1 viewing) (1) Guest
VB.NET HELP, VB.NET TUTORIALS, VB.NET CODE, VB.NET PROGRAMMING, VB.NET

Visual Basic.NET is the most recent generation of Visual Basic. Developers will be pleased to note that its new features include inheritance, method overloading, structured exception handling, and more. These capabilities make it easier than ever to create .NET applications, including Windows applications, web services, and web applications. The articles in this section give you all the tips you need to work wit this useful language.
  • Page:
  • 1

TOPIC: Encryption in just 5 lines of code

Encryption in just 5 lines of code 09 Dec 2009 15:37 #74

Simple ASCII switch algorithm

Instructions: This same function can be used to encrypt a normal string, or decrypt the encrypted string.

 
Public Function EncryptOrDecrypt(ByVal Input As String) As String
Dim Output As String = String.Empty
For Each Ch As Char In Input
Output &= Chr(255 - Asc(Ch))
Next
Return Output
End Function
 
  • CE
  • OFFLINE
  • Administrator
  • Posts: 197
  • Karma: 78
The following user(s) said Thank You: Gondhezz
CodersEngine
  • Page:
  • 1
Time to create page: 0.26 seconds