Skip to content

Latest commit

 

History

History
28 lines (14 loc) · 833 Bytes

README.markdown

File metadata and controls

28 lines (14 loc) · 833 Bytes

jquery-base64

Rather simple jQuery'fication of Nick Galbreath's base64 string encoder.

I didn't like having a global base64 variable around, that's all.

Usage

  • $.base64.encode( "this is a test" ) returns "dGhpcyBpcyBhIHRlc3Q="
  • $.base64.decode( "dGhpcyBpcyBhIHRlc3Q=" ) returns "this is a test"

Known issues

JSLint is complaining about the "unexpected use of '<<'/'|'". No idea, suggestions welcome.

Developers

Original code by Nick Galbreath. Port by Carlo Zottmann.

License

MIT license, just like the original.