About Crypto Recipe Workbench
Build a recipe of byte operations and run it on text or a file: decode Base64, gunzip, decrypt with AES-GCM, hash with SHA-256, write the digest as hex. Each step works on the bytes the step above produced, and the output of every step is shown with its length, so you can see exactly where a conversion goes wrong.
This is a workbench for the operations listed, not a security product. AES-GCM checks what it decrypts; AES-CBC and AES-CTR do not, and a hash is not encryption. Recipes are not saved between visits: copy the recipe as JSON to keep it.
How it works
- Text enters the recipe as UTF-8 bytes, and a file as its raw bytes. Every step takes bytes and gives bytes, so binary data is never turned into text and back on the way.
- Hashes give their raw digest: add To hex or To Base64 after one to choose how it is written. Under each step its output is shown as text when the bytes are valid UTF-8 and as hex otherwise, unless you choose a form.
- SHA-1, SHA-2 and PBKDF2 come from the browser’s Web Crypto; MD5, SHA-3, BLAKE2b, BLAKE3 and CRC32 from hash-wasm; HMAC and AES from the noble libraries, which also take 192-bit AES keys; compression from fflate.
- AES-GCM writes the ciphertext followed by its 16-byte tag, and decryption refuses data whose tag does not verify. AES-CBC and AES-CTR have no such check: a wrong key gives garbage or, for CBC, a padding error.
- Decompression stops at 64 MB of output, so a small file built to expand without end cannot fill the memory, and the gzip and zlib checksums are verified.
- Recipes run in a background worker. A long run shows which step it is on and can be cancelled; a failing step stops the run, says what went wrong and keeps the outputs of the steps before it.
Questions
Is it safe to protect real data with this?
The operations are standard ones, run by Web Crypto and well-known libraries, but this is a workbench for trying them, not a security product. It cannot stop you from reusing a nonce, choosing a mode that does not authenticate or typing a weak key. To protect a message or a file, the Encrypt Text and Encrypt File tools choose all of that for you.
Why is AES-GCM output 16 bytes longer than the input?
GCM adds a 16-byte authentication tag after the ciphertext. Decryption expects the same layout, ciphertext then tag, and refuses the data if the tag does not match the key, nonce, additional data and ciphertext. If another program keeps the tag apart or puts the nonce in front, arrange the bytes to match first.
Are my recipes saved?
No. The tool keeps nothing between visits, and the recipe is gone when you close the page. Copy or download it as JSON and paste it back later. Keys and passwords typed into steps are part of that JSON, so the tool warns before copying a recipe that holds one and offers a copy without them.
How large can the input be?
Up to 16 MB from a file, or 4 MB of typed or pasted text. One step may produce up to 64 MB and one run may hold 256 MB of outputs in all; a step that would go past either stops the recipe with a message. A recipe has at most 32 steps.
What is the difference between a hash, an HMAC and encryption?
A hash turns any input into a short digest that cannot be turned back; it needs no key and hides nothing. An HMAC is a hash keyed with a secret, so only someone with the key can make or check it. Encryption can be reversed with the key. CRC32 is only a checksum against accidental damage.
Does anything leave my device?
No. Every step runs in your browser, in a background worker. The input, the keys and the results stay on your device and are forgotten when you close the page.
Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.