Install the complete package with local command reference and every published mode.
install encencUse
Authenticated decryption validates the header and authentication tag before writing the result. Keep the password or exact key separate from the encrypted file, prefer hidden input for passwords, and use -w only when replacing the source file is genuinely intended.
enc · enc -info <file> · enc <src> [dst] [options]enclist authenticated ciphers supported by this server
enc -info <file>show an encrypted-file header without decrypting
enc <src>encrypt into <src>.
enc <src> <dst>encrypt into a destination file or directory
enc <src> -ddecrypt and remove .
-k <hex>use an exact hexadecimal key instead of a password
-K <file>use an exact raw or hexadecimal key file
-a <cipher>select an authenticated cipher; default aes-256-gcm
-i <n>set PBKDF2 iterations; default 310000
-freplace an existing destination
-wreplace the source file with the result
After encryption or decryption,
Authenticated decryption fails before writing when the password, key, header or authentication tag is invalid.
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install encInstall the reduced package. Local reference is omitted;
install enc -mInstall exactly this published version.
install enc -v 1.1.4Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade encRemove the extension block while leaving the core and unrelated modules intact.
install enc -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
cd \sandbox | enc secret.txt -K keys/data.key | enc -info secret.txt.encsandbox
Source sandbox/secret.txt
Saved sandbox/secret.txt.enc
Key sandbox/keys/data.key
Cipher aes-256-gcm
File sandbox/secret.txt.enc
Format LENC2
Cipher aes-256-gcm
Authenticated yes
Original size 36 B
Mode 0644encaes-128-gcm aes-192-gcm aes-256-gcm
chacha20-poly1305enc \sandbox\secret.txtpassword ••••••••
Source sandbox/secret.txt
Saved sandbox/secret.txt.enc
Cipher aes-256-gcmenc \sandbox\secret.txt \sandbox\private\Source sandbox/secret.txt
Saved sandbox/private/secret.txt.enc
Cipher aes-256-gcmenc \sandbox\secret.txt.enc -d -K \sandbox\keys\data.keySource sandbox/secret.txt.enc
Saved sandbox/secret.txt
Cipher aes-256-gcmenc \sandbox\data\users.json -k 00112233445566778899aabbccddeeff00112233445566778899aabbccddeeffSource sandbox/data/users.json
Saved sandbox/data/users.json.enc
Key exact
Cipher aes-256-gcmenc \sandbox\data\users.json -K \sandbox\keys\data.keySource sandbox/data/users.json
Saved sandbox/data/users.json.enc
Key sandbox/keys/data.key
Cipher aes-256-gcmenc \sandbox\secret.txt -a aes-128-gcmSource sandbox/secret.txt
Saved sandbox/secret.txt.enc
Cipher aes-128-gcmenc \sandbox\secret.txt -i 400000password ••••••••
Source sandbox/secret.txt
Saved sandbox/secret.txt.enc
Cipher aes-256-gcm
Iterations 400000enc \sandbox\secret.txt \sandbox\secret.txt.enc -fSource sandbox/secret.txt
Saved sandbox/secret.txt.enc
Replace explicitcopy \sandbox\secret.txt \sandbox\tmp\secret.txt | enc \sandbox\tmp\secret.txt -K \sandbox\keys\data.key -wSource sandbox/tmp/secret.txt
Saved sandbox/tmp/secret.txt
Key sandbox/keys/data.key
Replace source after successful encryptionenc \sandbox\missing.txtSource file not foundsandbox/data/sample.txtThe example uses a file or directory from the protected /sandbox/ documentation workspace.
lil-terminal sandbox text file
This file is safe to read, copy, rename, replace, hash and archive.
Bare