<%
function Encode64System(tel)
sTel = ""
sstr = "AA"
tel=floor(tel)
arr = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/")
length=ubound(arr) + 1
while tel>= length
sTel=arr(tel mod length) & sTel
tel=floor(tel/length)
loop
sstr = sstr & arr(tel mod length) & sTel
Encode64System = sstr
end function
response.write Encode64System("12345678912")
%>
function Encode64System(tel)
sTel = ""
sstr = "AA"
tel=floor(tel)
arr = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/")
length=ubound(arr) + 1
while tel>= length
sTel=arr(tel mod length) & sTel
tel=floor(tel/length)
loop
sstr = sstr & arr(tel mod length) & sTel
Encode64System = sstr
end function
response.write Encode64System("12345678912")
%>
On Error Resume Next
sTel = ""
sstr = "AA"
tel2=fix(tel)
arr = array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/")
length=ubound(arr) + 1
do while tel2>= length
sTel=arr(tel2 mod length) & sTel
tel2=fix(tel2/length)
loop
sstr = sstr & arr(tel2 mod length) & sTel
Encode64System = sstr
end function
response.write Encode64System("12345678912")