Sha256: b1e6196382df5ccf4bda452c591adceddca301e76275b3a6872217d9a653ff30

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

## SJCL_rb
[![Build Status](https://secure.travis-ci.org/mdp/sjcl_rb.png)](http://travis-ci.org/mdp/sjcl_rb)

A Ruby gem to interop with SJCL in AES-CCM mode.

Defaults to 256 bit AES in CCM mode with 100_000 iterations PBKDF2

### Install

gem install sjcl

### Usage

    enc = SJCL.encrypt('password', "Something to encrypt")
    dec = SJCL.decrypt('password', enc)

    # Custom number of PBKDF2 iterations
    enc = SJCL.encrypt('password', "Something to encrypt", {:iter => 10_000})

### Usage

    dec = SJCL.decrypt('password', enc)

### Dev Goals

- Should be 100% compatible with SJCL Javascript library in AES-CCM mode
- Should not be dependent upon OpenSSL having been compiles with AES-CCM-256 support (May be slower)

### TODO

- Test interop with node module directly

### Changelog

- 1.0.1
  - Match comparison fucntion from SJCL js
  - Include SJCL version in JSON
  - Better errors thrown
  - Update docs
- 1.0.0
  - Update to use OpenSSL PBKDF2 function for increased speed
  - Increase default iterations to 100,000

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sjcl-1.0.1 README.md