age是一个简单、现代和安全的文件加密工具(和Go库),具有小的explicitkeys、无配置选项、以及UNIX风格的可组合性。
$age-keyge-okey.txtPublickey:age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sf9aqmcac8p$tarcvz~/data|age-rage1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sf9aqmcac8p>data.tar.gz.age$age--decrypt-ikey.txtdata.tar.gz.age>data.tar.gz格式规范位于 age-ecryptio.org/v1。示例:有关完整文档,可阅读 theage(1)mapage。Usage:age[--ecrypt](-rRECIPIENT|-RPATH)...[--armor][-oOUTPUT][INPUT]age[--ecrypt]--passphrase[--armor][-oOUTPUT][INPUT]age--decrypt[-iPATH]...[-oOUTPUT][INPUT]Optios:-e,--ecryptEcrypttheiputtotheoutput.Defaultifomitted.-d,--decryptDecrypttheiputtotheoutput.-o,--outputOUTPUTWritetheresulttothefileatpathOUTPUT.-a,--armorEcrypttoaPEMecodedformat.-p,--passphraseEcryptwithapassphrase.-r,--recipietRECIPIENTEcrypttothespecifiedRECIPIENT.Caberepeated.-R,--recipiets-filePATHEcrypttorecipietslistedatPATH.Caberepeated.-i,--idetityPATHUsetheidetityfileatPATH.Caberepeated.INPUTdefaultstostadardiput,adOUTPUTdefaultstostadardoutput.IfOUTPUTexists,itwillbeoverwritte.RECIPIENTcabeaagepublickeygeeratedbyage-keyge("age1...")oraSSHpublickey("ssh-ed25519AAAA...","ssh-rsaAAAA...").Recipietfilescotaioeormorerecipiets,oeperlie.Emptyliesadliesstartigwith"#"areigoredascommets."-"maybeusedtoreadrecipietsfromstadardiput.Idetityfilescotaioeormoresecretkeys("AGE-SECRET-KEY-1..."),oeperlie,oraSSHkey.Emptyliesadliesstartigwith"#"areigoredascommets.Passphraseecryptedagefilescabeusedasidetityfiles.Multiplekeyfilescabeprovided,adayuusedoeswillbeigored."-"maybeusedtoreadidetitiesfromstadardiput.Whe--ecryptisspecifiedexplicitly,-icaalsobeusedtoecrypttoaidetityfilesymmetrically,isteadoriadditiotoormalrecipiets.点击空白处退出提示
评论