function | encryption Const sbase_64_characters = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz0123456789+/"
Function Base64Encode (ByVal ascontents)
Dim lnposition
Dim Lsresult
Dim Char1
Dim CHAR2
Dim CHAR3
Dim CHAR4
Dim Byte1
Dim Byte2
Dim Byte3
Dim SaveBits1
Dim SaveBits2
Dim lsgroupbinary
Dim LSGROUP64
If Len (ascontents) mod 3 > 0 Then ascontents = ascontents & String (3-(Len (ascontents) mod 3), ""
Lsresult = ""
For lnposition = 1 to Len (ascontents) Step 3
LSGROUP64 = ""
Lsgroupbinary = Mid (ascontents, lnposition, 3)
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.