VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Simple & Secure encryption

by Dave Katrowski (16 Submissions)
Category: Encryption
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

SO SIMPLE, SOOOOO STRONG... Just try to find a pattern in this encryption.... Try sending it a string containing all the same letters, are you amazed by the outcome??? (! KEEP IN MIND THAT ANYONE WITH A CONNECTION TO THE INTERNET HAS ACCESS TO THIS CODE. SO THE ENCRYPTION CAN BE CRACKED. IF WHAT YOU ARE ENCRYPTING IS VERY IMPORTANT, MAKE A MINOR CHANGE TO THE CODE TO AVOID PEOPLE CRACKING YOUR IMPORTANT INFO !)

API Declarations
'none

Rate Simple & Secure encryption

Dim s As String, i As Integer
If Left(Text1, 3) = "DMK" Then
Text1 = Right(Text1, Len(Text1) - 3)
For i = 1 To Len(Text1)
If i <= 100 Then
s = s & Chr(Asc(Mid(Text1, i, 1)) - 128 Mod i)
Else
s = s & Chr(Asc(Mid(Text1, i, 1)) - 128 Mod i / 10)
End If
Next
Else
For i = 1 To Len(Text1)
If i <= 100 Then
s = s & Chr(Asc(Mid(Text1, i, 1)) + 128 Mod i)
Else
s = s & Chr(Asc(Mid(Text1, i, 1)) + 128 Mod i / 10)
End If
Next
s = "DMK" & s
End If
Text1 = s

Download this snippet    Add to My Saved Code

Simple & Secure encryption Comments

No comments have been posted about Simple & Secure encryption. Why not be the first to post a comment about Simple & Secure encryption.

Post your comment

Subject:
Message:
0/1000 characters