0.08
Low commit activity in last 3 years
No release in over a year
Ruby Gem for RFC 3610 - Counter with CBC-MAC (CCM)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.8, >= 0.8.22
~> 12.3, >= 12.3.2
~> 4.3, >= 4.3.0
~> 0.50, >= 0.50.0
~> 3.2, >= 3.2.9
~> 0.9, >= 0.9.16
 Project Readme

Gem Version Dependency Status Build Status Coverage Status Code Climate Inline docs

openssl-ccm

Ruby Gem for RFC 3610 - Counter with CBC-MAC (CCM)

Installation

Add this line to your application's Gemfile:

gem 'openssl-ccm'

And then execute:

$ bundle

Or install it yourself as:

$ gem install openssl-ccm

Usage

Example:

require 'openssl/ccm'
ccm = OpenSSL::CCM.new('AES', 'My16Byte LongKey', 8)
ciphertext = ccm.encrypt('The message to encrypt', 'The nonce')
plaintext = ccm.decrypt(ciphertext, 'The nonce')

After initialisation, you can use the object as often you need.