Install the complete package with local command reference and every published mode.
install encencThe contents of a backup, configuration file or exported user list may need to stay private even if someone obtains the file.
To encrypt a file, run .enc suffix. For unattended use, -K <file> reads an exact key file; -k <hex> also works, but puts the key into the command line and possibly history. Use
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
Minimum supports the simple file-to-file password workflow, but not switches such as -info, -K, -f or -w.
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.5Ask 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.
encAvailable algorithms depend on the PHP server. Example excerpt:
aes-128-gcm aes-192-gcm aes-256-gcm chacha20-poly1305enc -info \sandbox/secret.txt.encFile sandbox/secret.txt.enc
Format LENC2
Cipher aes-256-gcm
Authenticated yes
Original size 36 B
Mode 0644enc \sandbox/secret.txtA hidden password or key prompt opens. The secret is not echoed.enc \sandbox/secret.txt \sandbox/tmp/A hidden password or key prompt opens. The secret is not echoed.enc \sandbox/data/users.json -K \sandbox/keys/data.keyExcerpt from directory listing:
sandbox/data/users.json.encenc \sandbox/secret.txt.enc \sandbox/tmp/recovered.txt -d -K \sandbox/keys/data.keyExcerpt from directory listing:
sandbox/tmp/recovered.txtenc \sandbox/data/users.json -k 00112233445566778899aabbccddeeff00112233445566778899aabbccddeeffExcerpt from directory listing:
sandbox/data/users.json.encenc \sandbox/data/users.json -k 00112233445566778899aabbccddeeff -a aes-128-gcmExcerpt from directory listing:
sandbox/data/users.json.encenc \sandbox/secret.txt -i 400000A hidden password or key prompt opens. The secret is not echoed.enc \sandbox/secret.txt \sandbox/tmp/protected.enc -K \sandbox/keys/data.keyDestination already exists; use -fenc \sandbox/secret.txt \sandbox/tmp/protected.enc -K \sandbox/keys/data.key -fExcerpt from directory listing:
sandbox/tmp/protected.encenc \sandbox/tmp/work.txt -K \sandbox/keys/data.key -wExcerpt from directory listing:
sandbox/tmp/work.txtenc \sandbox/tmp/work.txt.enc -K \sandbox/keys/data.key -w -dExcerpt from directory listing:
sandbox/tmp/work.txt.encenc \sandbox/missing.txt -K \sandbox/keys/data.keySource file not foundenc \sandbox/secret.txt -k not-a-keyHexadecimal key must contain exactly 64 charactersenc \sandbox/secret.txt -i 99Iteration count must be between 10000 and 5000000enc \sandbox/secret.txt -K \sandbox/keys/no.keyKey file is not readableenc \sandbox/secret.txt -a aes-256-cbcCipher is unavailable or not authenticatedenc \sandbox/secret.txt \sandbox/tmp/other.enc -K \sandbox/keys/data.key -wChoose either a destination or -wenc \sandbox/secret.txt -d -K \sandbox/keys/data.keyEncrypted file format not recognizedsandbox/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.
Current stable release of