Hey Everyone,
I am learning ASP at the moment and came across an error with this code:
The error is said to be coming from this line:
TIA!
I am learning ASP at the moment and came across an error with this code:
Code:
Function Encrypt( plain, symkey ) keylen=Len(symkey) plainlen=Len(plain) Encrypt="" for i=0 to plainlen-1 curchar=mid(plain, i+1, 1) charvalue=asc(curchar) if i<keylen then keypoint=i else keypoint=i-(int(i/keylen)*keylen) End if keyvalue=asc(mid(key,keypoint+1,1)) charvalue=charvalue+keyvalue encrypt=encrypt & charvalue & " " next End Function
Code:
keypoint=i-(int(i/keylen)*keylen)
Comment