p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP Professional (http://p2p.wrox.com/forumdisplay.php?f=63)
-   -   Code to validate a cookie (http://p2p.wrox.com/showthread.php?t=99796)

srotondo February 28th, 2018 10:11 AM

Code to validate a cookie
 
Good morning.

I'm using the code below to validate cookies on my website.

It works for 99.9% of situations but not all.

Does anyone have cookie authentication code they can send me?

Thank you.

Sal

===========================

Function DeCrypt(strEncrypted, strKey)

Dim strChar, iKeyChar, iStringChar

for i = 1 To Len(strEncrypted)
iKeyChar = (Asc(Mid(strKey, i, 1)))
iStringChar = Asc(Mid(strEncrypted, i, 1))
iDeCryptChar = iKeyChar Xor iStringChar
strDecrypted = strDecrypted & Chr(iDeCryptChar)

Next

DeCrypt = strDecrypted

End Function


All times are GMT -4. The time now is 01:31 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.