π AshFeistelCipher - Encrypted Integer IDs for Ash Resources
Sequential IDs (1, 2, 3...) leak business information. AshFeistelCipher provides a declarative DSL to encrypt integer IDs using Feistel cipher, transforming sequential integers into non-sequential, unpredictable values automatically via database triggers.
Key Features
β
Secure IDs without UUIDs - Hide sequential patterns while keeping efficient integer IDs (bigint)
β
Automatic encryption - Database triggers handle encryption transparently
β Collision-free - Deterministic one-to-one mapping β Declarative DSL - Clean, Ash-idiomatic syntax Quick Example Installation π¦ Hex: https://hex.pm/packages/ash_feistel_cipher
π GitHub: https://github.com/devall-org/ash_feistel_cipher Built on top of feistel_cipher library.
β Collision-free - Deterministic one-to-one mapping β Declarative DSL - Clean, Ash-idiomatic syntax Quick Example Installation π¦ Hex: https://hex.pm/packages/ash_feistel_cipher
π GitHub: https://github.com/devall-org/ash_feistel_cipher Built on top of feistel_cipher library.
1 Reply
Okay wow thatβs super cool!