How to encrypt my password:
First write an encryption function encrypt (str):
<%
function Encrypt (str)
Dim I,c,length,texts,seed
length = Len (str)
Texts = ""
For i = 1 to length
c = Mid (Str,i,length)
SEED=ASC (c)
If seed >asc ("hh") then//
SEED=SEED-15//Prevent overflow problems
End If//
Seed=i+length+seed
Texts = texts & Chr (SEED)
Next
Texts = texts & Mid (Str,length,length)
Encrypt =texts
End Function
%>
The VBScript function used above:
Len (str) returns the number of characters in a string
ASC () returns the ANSI character code for the first letter of each string
The CHR () function returns the character corresponding to the specified character code
Mid (Str,i,length) returns the length characters from the first character in the string str
Another input password that link, with JS control can only input
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
and limit the length of the grumble password, 12 should be OK
Implementation functions
function Charsinbag (s, bag)
{
var i;
for (i = 0; i < s.length; i++)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.