feat(core): HashProperty keeps values that must be read back #66
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
qa:preview
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quatrain/core!66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/65-hash-property-reversible"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #65
HashPropertygains a reversible algorithm,ALGORITHM_AES256GCM, so credentials are kept the same way everywhere instead of each application encrypting around a string property.setunder a 256-bit key:keyoption (bytes, base64 text or function) orHashProperty.setDefaultKey()for models declared statically.val(),toJSON()and backends only see the sealed text (aes-256-gcm.v1.…).reveal()reads the value back;compare()works as for digests, in constant time.context(text or function of the parent object) binds a value to what it belongs to.HashPropertyUnreadableErrornever carries a value.One-way algorithms are unchanged. Not addressed here: with those, a digest loaded from a backend is still hashed again by
set(see the note inUserRepository).Tests: 22 passing on the property (8 new).
🤖 Generated with Claude Code