Registry / crypto / attr-encrypted

attr-encrypted

JSON →
library4.2.0rbrubygemsunverified

Generates attr_accessors that encrypt and decrypt attributes transparently in Ruby objects.

gem install attr_encrypted
INSTALL
IMPORT
SIG · ATTR-ENCRYPTED
A
attr-encrypted
cryptorubyv4.2.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.

AttrEncrypted
require 'attr_encrypted'

Encrypt and decrypt an attribute transparently.

require 'attr_encrypted' class User extend AttrEncrypted attr_encrypted :email, key: 'secret_key' end user = User.new user.encrypted_email = 'test@example.com' puts user.email
Debug
Known issues
breakingRequires a secure key; using a weak or predictable key compromises encryption.
fix
Use a cryptographically random key of sufficient length (e.g., 32 bytes for AES-256).
affects: >= 4.0.0
Upgrade
Version history
4.2.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
44 hits · last 30 days
node
38
Amazon
1
OpenAI (training)
1
Resources