age是一个简单、现代和安全的文件加密工具(和Go库),具有小的explicitkeys、无配置选项、以及UNIX风格的可组合性。$age-keygen-okey.txtPublickey:age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p$tarcvz~/data|age-rage1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p>data.tar.gz.age$age--decrypt-ikey.txtdata.tar.gz.age>data.tar.gz格式规范位于 age-encryption.org/v1。示例:有关完整文档,可阅读 theage(1)manpage。Usage:age[--encrypt](-rRECIPIENT|-RPATH)...[--armor][-oOUTPUT][INPUT]age[--encrypt]--passphrase[--armor][-oOUTPUT][INPUT]age--decrypt[-iPATH]...[-oOUTPUT][INPUT]Options:-e,--encryptEncrypttheinputtotheoutput.Defaultifomitted.-d,--decryptDecrypttheinputtotheoutput.-o,--outputOUTPUTWritetheresulttothefileatpathOUTPUT.-a,--armorEncrypttoaPEMencodedformat.-p,--passphraseEncryptwithapassphrase.-r,--recipientRECIPIENTEncrypttothespecifiedRECIPIENT.Canberepeated.-R,--recipients-filePATHEncrypttorecipientslistedatPATH.Canberepeated.-i,--identityPATHUsetheidentityfileatPATH.Canberepeated.INPUTdefaultstostandardinput,andOUTPUTdefaultstostandardoutput.IfOUTPUTexists,itwillbeoverwritten.RECIPIENTcanbeanagepublickeygeneratedbyage-keygen("age1...")oranSSHpublickey("ssh-ed25519AAAA...","ssh-rsaAAAA...").Recipientfilescontainoneormorerecipients,oneperline.Emptylinesandlinesstartingwith"#"areignoredascomments."-"maybeusedtoreadrecipientsfromstandardinput.Identityfilescontainoneormoresecretkeys("AGE-SECRET-KEY-1..."),oneperline,oranSSHkey.Emptylinesandlinesstartingwith"#"areignoredascomments.Passphraseencryptedagefilescanbeusedasidentityfiles.Multiplekeyfilescanbeprovided,andanyunusedoneswillbeignored."-"maybeusedtoreadidentitiesfromstandardinput.When--encryptisspecifiedexplicitly,-icanalsobeusedtoencrypttoanidentityfilesymmetrically,insteadorinadditiontonormalrecipients.声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态
评论