encrypted-attr
JSON →A library for transparently encrypting model attributes in ORMs or standalone, using AES-256-GCM with 96-bit random nonces and 128-bit authentication tags. Version 1.1.0 is the current stable release, maintained as needed. Supports key rotation via key IDs and additional authenticated data (key id, object id) to prevent substitution attacks. Designed for Node.js ≥4.0, ESM-only? No, CommonJS-based. Differentiator: explicit security and threat models, integration with ORM hooks, and use of standard Node.js crypto.
Resources
packageencrypted-attr ↗