prisma-decrypt

Crates.ioprisma-decrypt
lib.rsprisma-decrypt
version0.1.2
created_at2025-06-01 15:56:58.539542+00
updated_at2025-06-01 16:38:43.630988+00
descriptionCLI tool for super fast prisma-field-encryption column decryption (clock decryption)
homepage
repositoryhttps://github.com/sagefarrenholz/prisma-decrypt
max_upload_size
id1697287
size19,771
Sage (sagefarrenholz)

documentation

README

prisma-decrypt

Crates.io Build Status License

CLI tool for super fast prisma-field-encryption column decryption

A fast cli tool that decrypts data encrypted in your database by the prisma middleware prisma-field-encryption

Installation

brew tap sagefarrenholz/prisma-decrypt
brew install prisma-decrypt

or via cargo:

cargo install prisma-decrypt

Usage

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>

Encoding Output

You can also specify the encoding output (by default utf-8):

prisma-decrypt --encoding hex <ENCRYPTED_DATA>
prisma-decrypt --encoding base64 <ENCRYPTED_DATA>

Notes

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

Commit count: 9

cargo fmt