Login Register






Encryption + Decryption program filter_list
Author
Message
Encryption + Decryption program #1
vbs encryption and decryption script


Date: 2017-10-01:
Time: 22:41:16

encrypt :
set x = WScript.CreateObject("WScript.Shell")
mySecret = inputbox("enter text to be encoded")
'Reverse the submitted text'
mySecret = StrReverse(mySecret)
'Open up an instance of Notepad to print the results after waiting for 1 second'
x.Run "%windir%\notepad"
wscript.sleep 1000
x.sendkeys encode(mySecret)'this function encodes the text by advancing each character 3 letters'
function encode(s)
For i = 1 To Len(s)
newtxt = Mid(s, i, 1)
newtxt = Chr(Asc(newtxt)+3)
coded = coded & newtxt
Next
encode = coded
End Function

decrypt:
set x = WScript.CreateObject("WScript.Shell")
mySecret = inputbox("Enter text to be decoded")
'Reverse the submitted text'
mySecret = StrReverse(mySecret)
'Open up an instance of Notepad to print the results after waiting for 1 second
x.Run "%windir%\notepad"
wscript.sleep 1000
x.sendkeys encode(mySecret)
'this function encodes the text by advancing each character 3 letters
function encode(s)
For i = 1 To Len(s)
newtxt = Mid(s, i, 1)
newtxt = Chr(Asc(newtxt)-3)
coded = coded & newtxt
Next
encode = coded
End Function
(This post was last modified: 10-01-2017, 10:42 PM by ben.)

[+] 1 user Likes ben's post
Reply

RE: Encryption + Decryption program #2
How to input same code into VBS scrupt wits come text of my programm?

Reply