# meteor-crypto-base64
**Repository Path**: mirrors_tanis2000/meteor-crypto-base64
## Basic Information
- **Project Name**: meteor-crypto-base64
- **Description**: Base64 encoding & decoding for CryptoJS, repackaged for Meteor
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-18
- **Last Updated**: 2026-02-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
[Base64](https://en.wikipedia.org/wiki/Base64) encoding and decoding
from [CryptoJS](https://code.google.com/p/crypto-js/).
Install
-------
Inside your project folder run
```
$ mrt add crypto-base64
```
The following methods under the `CryptoJS` namespace will now be available
on **both the client and server**:
* `var words = CryptoJS.enc.Base64.parse('SGVsbG8sIFdvcmxkIQ==');`
* `var base64 = CryptoJS.enc.Base64.stringify(words);`
Usage
-----
Base64 encode a literal string:
```javascript
CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse('Hello, World!'));
// "SGVsbG8sIFdvcmxkIQ=="
```
Note that Base64 encoding is done on *byte arrays*, not character arrays
(i.e. strings). Strings are logical character arrays, not byte arrays.
Character arrays need to first be transformed into byte arrays by choosing
a character encoding (Utf8, Utf16 or Utf16LE) to transform each character
into a sequence of one or more bytes. Once you've got a byte array,
then you can Base64 encode it.
See also
--------
The CryptoJS project lives at and
the documentation for encoders, including Base64, is at
.