Registry / crypto / aescrypt

aescrypt

JSON →
library1.0.0rbrubygemsunverified

Simple AES encryption / decryption for Ruby

gem install aescrypt
INSTALL
IMPORT
SIG · AESCRYPT
A
aescrypt
cryptorubyv1.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.

AESCrypt
require 'aescrypt'

Encrypt and decrypt a string using AES.

require 'aescrypt' encrypted = AESCrypt.encrypt('secret data', 'password') decrypted = AESCrypt.decrypt(encrypted, 'password') puts decrypted
Debug
Known issues
gotchaUses AES-256-CBC by default, which is not authenticated; vulnerable to padding oracle attacks.
fix
Consider using an authenticated encryption mode like AES-GCM or a higher-level library like RbNaCl.
affects: >= 1.0.0
Upgrade
Version history
1.0.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
34
Resources
aescrypt — gem install aescrypt · libregistry