Difference between revisions of "BASE64 DECODE()"
From Recital Documentation Wiki
Helengeorge (Talk | contribs) (→Class) |
Yvonnemilne (Talk | contribs) |
||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
==Purpose== | ==Purpose== | ||
− | + | Decode a string encoded with MIME base64 | |
==Syntax== | ==Syntax== | ||
− | + | BASE64_DECODE(<expC>) | |
==See Also== | ==See Also== | ||
− | + | [[BASE64_ENCODE()]] | |
==Description== | ==Description== | ||
+ | The BASE64_DECODE() function is used to decode a string encoded with MIME base64. | ||
+ | The BASE64_ENCODE() function is used to encode with MIME base64. | ||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
− | + | // Check password against file | |
+ | m_pass=space(10) | ||
+ | @10,10 get m_pass | ||
+ | read | ||
+ | if m_pass <> base64_decode(filetostr("password.txt")) | ||
+ | // invalid password | ||
+ | return | ||
+ | endif | ||
</code> | </code> | ||
− | |||
+ | ==Products== | ||
+ | Recital, Recital Server | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] |
Latest revision as of 16:03, 23 June 2010
Purpose
Decode a string encoded with MIME base64
Syntax
BASE64_DECODE(<expC>)
See Also
Description
The BASE64_DECODE() function is used to decode a string encoded with MIME base64.
The BASE64_ENCODE() function is used to encode with MIME base64.
Example
// Check password against file m_pass=space(10) @10,10 get m_pass read if m_pass <> base64_decode(filetostr("password.txt")) // invalid password return endif
Products
Recital, Recital Server