| Crates.io | prisma-decrypt |
| lib.rs | prisma-decrypt |
| version | 0.1.2 |
| created_at | 2025-06-01 15:56:58.539542+00 |
| updated_at | 2025-06-01 16:38:43.630988+00 |
| description | CLI tool for super fast prisma-field-encryption column decryption (clock decryption) |
| homepage | |
| repository | https://github.com/sagefarrenholz/prisma-decrypt |
| max_upload_size | |
| id | 1697287 |
| size | 19,771 |
A fast cli tool that decrypts data encrypted in your database by the prisma middleware prisma-field-encryption
brew tap sagefarrenholz/prisma-decrypt
brew install prisma-decrypt
or via cargo:
cargo install prisma-decrypt
Using PRISMA_FIELD_ENCRYPTION_KEY environment variable:
prisma-decrypt <ENCRYPTED_DATA>
Manually specifying decryption key:
prisma-decrypt --prisma-key <PRISMA_FIELD_ENCRYPTION_KEY> <ENCRYPTED_DATA>
You can also specify the encoding output (by default utf-8):
prisma-decrypt --encoding hex <ENCRYPTED_DATA>
prisma-decrypt --encoding base64 <ENCRYPTED_DATA>
Alternatively, you could use cloak https://www.npmjs.com/package/@47ng/cloak
(prisma-field-encryption uses this under the hood), but I built this to be a
bit faster and give more flexibility