Skip to content

Asmod4n/mruby-b64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mruby-b64

Examples

#taken from https://en.wikipedia.org/wiki/Base64#Examples
plain = "Man is distinguished, not only by his reason, but by this singular passion from
other animals, which is a lust of the mind, that by a perseverance of delight
in the continued and indefatigable generation of knowledge, exceeds the short
vehemence of any carnal pleasure."

base64 = B64.encode(plain)

B64.decode(base64) == plain

Streaming Interface for encoding

b64 = B64.new

b64 << "welcome " << "to " << "base64 " << "for " << "mruby"

base64 = b64.final

B64.decode(base64) == "welcome to base64 for mruby"

About

Base64 for mruby with a streaming interface

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published