Option Explicit
Public Function GenPassword(Optional ByVal Length As Long = 5) As String
Dim i&, s$
Call Randomize
s = vbNullString
Do While (Len(s) < Length)
i = Rnd() * 255
Select Case i
Case 48 To 57, 65 To 90, 97 To 122
s = s & Chr$(i)
End Select
Loop
GenPassword = s
End Function
?GenPassword(10)
f8cH5u9M93
?GenPassword
L2Nnu
Function KodeGen(Login) as string
a = Asc(login)
b = hex(asc(login) + asc(mid(login,1,1)))
c= hex(len(login))
d = cstr(a) & b & c
KodeGen=d
end function
Сейчас этот форум просматривают: AhrefsBot, Google-бот и гости: 24