mglib

Personal IDL library for M. Galloy

single page | use frames     summary     class     fields     routine details     file attributes

net/

mg_base64decode.pro

includes main-level program

Routines

top mg_base64decode

result = mg_base64decode(s)

Decode a string in Base64, performs the inverse operation as MG_BASE64ENCODE.

Return value

string

Parameters

s in required type=string

string to decode

Examples

Try:

IDL> s = 'username: password' IDL> print, s, format='(%"Original string: \"%s\"")' Original string: "username: password" IDL> enc = mg_base64encode(s) IDL> print, enc, format='(%"Encoded string: \"%s\"")' Encoded string: "dXNlcm5hbWU6IHBhc3N3b3Jk" IDL> dec = mg_base64decode(enc) IDL> print, dec, format='(%"Decoded string: \"%s\"")' Decoded string: "username: password"

File attributes

Modification date: Wed May 14 15:07:14 2014
Lines: 23
Docformat: rst rst
Personal library of Michael Galloy
Contact me if you have enhancement requests or bug fixes.