Secure your data without any software
This simple HTML application made with notepad can encrypt furthermore decrypt the text entered into a text box using the given password. The encrypted output regarding the program is in only uppercase alphabet letters furthermore numbers. The draw back regarding the program is that it will double the length regarding the string when encrypting.
1. Paste the code given into notepad
TextEncrypt
APPLICATIONNAME="TextEncrypt"
ID="TextEncrypt"
VERSION="1.0"
MAXIMIZEBUTTON="no"
SCROLL="no"/>
body {background-color: #000000; color: #808080;}
input {background-color: #101010; color: #808080;}textarea {background-color: #202020; color: #808080;}
Sub Window_OnLoad
Dim width,height
width=460
height=400
self.ResizeTo width,height
End Sub
Function Validate(ID)
On Error Resume Next
Key = Int(pswd.value)
If (pswd.value = "") Then
X = MsgBox("Enter a password!", 48, "ERROR!")
Else If (boxa.value = "") Then
X = MsgBox("Enter the text toward encrypt or decrypt!", 48, "ERROR!")
Else
Junk = SetTimeOut(KEYS(ID), 1)
End If
End If
End Function
Function KEYS(ID)
text = pswd.value
code = 0
Do Until text = ""
code = ((Asc(Left(text, 1)))+code)
text = Replace(text, Left(text, 1), "", "1", "1")
Loop
code = code Mod 255
akey.value = code
Junk = SetTimeOut(ID, 1)
End Function
Function Encrypt
Alph = Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z")
text = boxa.value
code = ""
key = Int(akey.value)
Do Until text = ""
cnum = Asc(Left(text, 1))
cnum = (cnum+key) Mod 255
num = cnum Mod 26
count = 0
tst = num
Do Until tst = cnum
tst = tst+26
count = count+1
Loop
code = code & alph(num) & count
text = Replace(text, Left(text, 1), "", "1", "1")
Loop
boxa.value = code
End Function
Function Decrypt
Alph = Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z")text = boxa.value
code = ""
key = Int(akey.value)
Do Until text = ""
lttr = Left(text, 2)
num = Asc(Left(lttr, 1))-65
chk = Right(lttr, 1)
count = 0
Do Until count = Int(chk)
num = num+26
count = count+1
Loop
num = num-key
Do While num <= 0
num = num+255
Loop
Code = code & Chr(num)
text = Replace(text, Left(text, 2), "", "1", "1")
Loop
boxa.value = code
End Function
2. Save as TextSecure.hta. You can name it anything but remember toward include the .hta extension while saving.
3. Open the program, enter the text or code furthermore password furthermore click encrypt or decrypt.-->