安装包含本地参考和全部已发布模式的完整包。
install encenc当文件既需要保密又需要发现篡改时使用
写入解密结果之前,
enc · enc -info <file> · enc <src> [dst] [options]enc列出此服务器支持的认证加密算法
enc -info <file>显示加密文件头而不解密
enc <src>通过隐藏密码输入加密为 <src>.
enc <src> <dst>加密到目标文件或目录
enc <src> -d解密并从默认输出名中移除 .
-k <hex>使用精确的十六进制密钥而非密码
-K <file>使用包含精确原始或十六进制密钥的文件
-a <cipher>选择认证加密算法;默认 aes-256-gcm
-i <n>设置 PBKDF2 迭代次数;默认 310000
-f替换现有目标
-w用结果替换源文件
可直接在页面中运行预先准备的示例。结果已预先生成并在浏览器中显示;服务器不会执行任何终端命令。
安装当前兼容版本。完整功能请选择 Base,精简包请选择 Minimum;已安装模块的更新请使用 upgrade。
Base 与 Minimum 是同一当前模块版本的两个包。
安装包含本地参考和全部已发布模式的完整包。
install enc安装精简包。该包不包含本地参考;
install enc -m安装这个确切的已发布版本。
install enc -v 1.1.4让 upgrade 检查兼容性,仅在需要时替换已安装块。
upgrade enc删除扩展块,不影响核心和其他模块。
install enc -u示例可复制,但网站不会执行。请先检查路径、权限和破坏性选项。
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.txt找不到源文件sandbox/data/sample.txt该示例使用受保护的 /sandbox/ 文档工作区中的文件或目录。
lil-terminal sandbox text file
This file is safe to read, copy, rename, replace, hash and archive.