Lasso Soft Inc. > Home

[ bytes->encodebase64 ]

Method

[bytes->encodebase64] encodes a bytes object as base64 encoded.

  • Syntax
bytes('string')->encodebase64
Examples
  • Beginner

To encode and decode a string as Base64

Code

local(body = 'I love purple rhinos')
'ORIG: '+#body

#body = bytes(#body)->encodebase64
'\rEncoded: '+#body

#body = bytes(#body)->decodebase64
'\rDecoded: '+#body

Result

ORIG: I love purple rhinos
Encoded: SSBsb3ZlIHB1cnBsZSByaGlub3M=
Decoded: I love purple rhinos

Recent Comments

No Comments found

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft