Encode/Decode – Two routines for ASP encryption

Encode/Decode – Two routines for ASP encryption

' These two VBScript routines can be use to encrypt data passed on the ' querystring, ' so that users can't decode what is being passed between ASP pages.' USE: sField = Decode(request.querystring(encode("sParm")))Function Decode(sIn)    dim x, y, abfrom, abto    Decode="": ABFrom = ""    For x = 0 To 25: ABFrom = ABFrom & Chr(65 + x): Next     For x = 0 To 25: ABFrom = ABFrom & Chr(97 + x): Next     For x = 0 To 9: ABFrom = ABFrom & CStr(x): Next     abto = Mid(abfrom, 14, Len(abfrom) - 13) & Left(abfrom, 13)    For x=1 to Len(sin): y=InStr(abto, Mid(sin, x, 1))        If y = 0 then            Decode = Decode & Mid(sin, x, 1)        Else            Decode = Decode & Mid(abfrom, y, 1)        End If    NextEnd Function' USE: location.href="nextpage.asp?" & encode("sParm=" & sData)Function Encode(sIn)    dim x, y, abfrom, abto    Encode="": ABFrom = ""    For x = 0 To 25: ABFrom = ABFrom & Chr(65 + x): Next     For x = 0 To 25: ABFrom = ABFrom & Chr(97 + x): Next     For x = 0 To 9: ABFrom = ABFrom & CStr(x): Next     abto = Mid(abfrom, 14, Len(abfrom) - 13) & Left(abfrom, 13)    For x=1 to Len(sin): y = InStr(abfrom, Mid(sin, x, 1))        If y = 0 Then             Encode = Encode & Mid(sin, x, 1)        Else             Encode = Encode & Mid(abto, y, 1)        End If    NextEnd Function 

Share the Post:
Heading photo, Metadata.

What is Metadata?

What is metadata? Well, It’s an odd concept to wrap your head around. Metadata is essentially the secondary layer of data that tracks details about the “regular” data. The regular

XDR solutions

The Benefits of Using XDR Solutions

Cybercriminals constantly adapt their strategies, developing newer, more powerful, and intelligent ways to attack your network. Since security professionals must innovate as well, more conventional endpoint detection solutions have evolved

AI is revolutionizing fraud detection

How AI is Revolutionizing Fraud Detection

Artificial intelligence – commonly known as AI – means a form of technology with multiple uses. As a result, it has become extremely valuable to a number of businesses across

AI innovation

Companies Leading AI Innovation in 2023

Artificial intelligence (AI) has been transforming industries and revolutionizing business operations. AI’s potential to enhance efficiency and productivity has become crucial to many businesses. As we move into 2023, several