BASE64DEC/de
Contents |
= (**COPIED FROM ENGLISH PAGE**) === Action
Converts Base-64 data into the original data.
Syntax
Result = BASE64DEC( source)
Remarks
Result |
A string variable that is assigned with the un-coded string. |
Source |
The source string that is coded with base-64. |
Base-64 is not an encryption protocol. It sends data in 7-bit ASCII data format. MIME, web servers, and other Internet servers and clients use Base-64 coding.
The provided Base64Dec() function is a decoding function. It was written to add authentication to the web server sample.
When the web server asks for authentication, the client will send the user and password unencrypted, but base-64 coded to the web server.
Base-64 coded strings are always in pairs of 4 bytes. These 4 bytes represent 3 bytes.
See also
CONFIG TCPIP , GETSOCKET , SOCKETCONNECT , SOCKETSTAT , TCPWRITE , TCPWRITESTR , CLOSESOCKET , SOCKETLISTEN , BASE64ENC
Example
$regfile = "m48def.dat" ' specify the used micro $crystal = 8000000 ' used crystal frequency $baud = 19200 ' use baud rate $hwstack = 32 ' default use 32 for the hardware stack $swstack = 10 ' default use 10 for the SW stack $framesize = 40 ' default use 40 for the frame space $lib "tcpip.lbx" Config Com1 = Dummy , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0 Dim S As String * 15 , Z As String * 15 S = "bWFyazptYXJr" Z = Base64dec(s) Print Z 'mark:mark End
Languages | English • Deutsch |
---|