Registry / crypto / encryptor

encryptor

JSON →
library3.0.0rbrubygemsunverified

A simple wrapper for Ruby's OpenSSL library to encrypt and decrypt strings with symmetric encryption.

gem install encryptor
INSTALL
IMPORT
SIG · ENCRYPTOR
E
encryptor
cryptorubyv3.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Encryptor
require 'encryptor'

Encrypt and decrypt a string

require 'encryptor' key = OpenSSL::Random.random_bytes(32) ciphertext = Encryptor.encrypt(value: 'secret', key: key) plaintext = Encryptor.decrypt(value: ciphertext, key: key)
Debug
Known issues
breakingDefault encryption algorithm changed from AES-256-CBC to AES-256-GCM in version 3.0.0
fix
Specify algorithm explicitly if upgrading from older versions: `algorithm: 'aes-256-cbc'`
affects: >= 3.0.0
Upgrade
Version history
3.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
Resources
encryptor — gem install encryptor · libregistry