# attr-encrypted/attr_encrypted

Generates attr_accessors that encrypt and decrypt attributes

Repository: https://github.com/attr-encrypted/attr_encrypted
Canonical: https://ross.abutalabs.com/products/attr_encrypted
Language: Ruby
License: MIT
License Family: permissive
Last push: 2025-10-12T03:08:39+00:00

## Health v2 (maintenance only)
Score: 46/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 46, release rhythm 16, longevity 100
- inputs: {"age_days": 6446, "days_push": 325, "days_rel": 587, "gap_med": 125, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2018, forks 418 (observed 2026-08-28T04:06:06.135822+00:00)

## What it is
A Ruby gem that generates attr_accessors which transparently encrypt and decrypt attributes on any Ruby class. It integrates with ActiveRecord and Sequel for database persistence of encrypted columns.

## Use cases
- encrypt sensitive fields like SSNs in Rails models
- transparently encrypt and decrypt attributes in Ruby classes
- store encrypted columns in ActiveRecord or Sequel
- encrypt user data at rest in a database
- add field-level encryption to an existing Ruby app
- encrypt attributes with per-attribute IV AES-GCM

## When to choose
- you need transparent attribute-level encryption in Ruby with ActiveRecord or Sequel
- you want encrypted columns with minimal code changes
- you need per-attribute IV encryption with AES-GCM

## When to avoid
- you need full-database or disk-level encryption instead of field-level
- you are not using Ruby
- you need searchable or queryable encrypted fields

## Facets
- artifact type: library
- maturity: active
- function: cryptography, security, orm, serialization
- domain: security, databases, developer-tools, privacy
- platform: ruby, jvm
- tags: encryption, active-record, sequel, transparent-encryption, gem, attribute-encryption

## Member repositories
- attr-encrypted/attr_encrypted (main) score 46

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:06.135822+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:00:27.830703+00:00, confidence not recorded.
  - readme: https://github.com/attr-encrypted/attr_encrypted (fetched 2026-08-28T04:06:06.135822+00:00, sha f1c3d71ca4fa)
- Data as of 2026-08-30T08:39:29.467469+00:00.
