Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 34baf88672
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (11 sloc) 0.449 kb

CoffeeScript Base64 implementation

Usage

Base64.encode('hello world') # -> 'aGVsbG8gd29ybGQ='
Base64.decode('aGVsbG8gd29ybGQ=') # -> 'hello world'

But wait, there is more

Also supports unicode strings. Oh wow!

Base64.encode('привет мир') # -> '0L/RgNC40LLQtdGCINC80LjRgOCAgA=='
Base64.decode('0L/RgNC40LLQtdGCINC80LjRgOCAgA==') # -> 'привет мир'
Jump to Line
Something went wrong with that request. Please try again.