Answers for "how to decode text with vbs"

0

how to decode text with vbs

set x = WScript.CreateObject("WScript.Shell")
mySecret = inputbox("enter text to be decoded")
mySecret = StrReverse(mySecret)
x.Run "%windir%\notepad"
wscript.sleep 1000
x.sendkeys encode(mySecret)

function encode(s)
For i = 1 To Len(s)
newtxt = Mid(s, i, 1)
newtxt = Chr(Asc(newtxt)-5)
coded = coded & newtxt
Next 
encode = coded
End Function
Posted by: Guest on June-30-2021

Browse Popular Code Answers by Language