cryptr开源项目

我要开发同款
匿名用户2021年11月09日
49阅读
开发技术SHELL
所属分类终端/远程登录、应用工具
授权协议Apache-2.0 License

作品详情

cryptrAsimpleshellutilityforencryptinganddecryptingfilesusingOpenSSL.Installationgitclonehttps://github.com/nodesocket/cryptr.gitln-s"$PWD"/cryptr/cryptr.bash/usr/local/bin/cryptrBashtabcompletion

Addtools/cryptr-bash-completion.bashtoyourtabcompletionfiledirectory.

API/Commandsencrypt

encrypt<file>-EncryptesfilewithOpenSSLAES-256cipherblockchaining.Writesanencryptedfileout(ciphertext)appending.aesextension.

➜cryptrencrypt./secret-fileenteraes-256-cbcencryptionpassword:Verifying-enteraes-256-cbcencryptionpassword:➜ls-alh-rw-r--r--1usergroup1.0GOct113:33secret-file-rw-r--r--1usergroup1.0GOct113:34secret-file.aes

YoumayoptionallydefinethepasswordtousewhenencryptingusingtheCRYPTR_PASSWORDenvironmentvariable.Thisenablesnon-interactive/batchoperations.

➜CRYPTR_PASSWORD=A1EO7S9SsQYcPChOr47ncryptrencrypt./secret-filedecrypt

decrypt<file.aes>-DecryptencryptedfileusingOpenSSLAES-256cipherblockchaining.Writesadecryptedfileout(plaintext)removing.aesextension.

➜ls-alh-rw-r--r--1usergroup1.0GOct113:34secret-file.aes➜cryptrdecrypt./secret-file.aesenteraes-256-cbcdecryptionpassword:➜ls-alh-rw-r--r--1usergroup1.0GOct113:35secret-file-rw-r--r--1usergroup1.0GOct113:34secret-file.aes

YoumayoptionallydefinethepasswordtousewhendecryptingusingtheCRYPTR_PASSWORDenvironmentvariable.Thisenablesnon-interactive/batchoperations.

➜CRYPTR_PASSWORD=A1EO7S9SsQYcPChOr47ncryptrdecrypt./secret-file.aeshelp

help-Displayshelp

➜cryptrhelpUsage:cryptrcommand<command-specific-options>encrypt<file>Encryptfiledecrypt<file.aes>DecryptencryptedfilehelpDisplayshelpversionDisplaysthecurrentversionversion

version-Displaysthecurrentversion

➜cryptrversioncryptr2.2.0default

default-Displaysthecurrentversionandhelp

➜cryptrcryptr2.2.0Usage:cryptrcommand<command-specific-options>encrypt<file>Encryptfiledecrypt<file.aes>DecryptencryptedfilehelpDisplayshelpversionDisplaysthecurrentversionChangelog

https://github.com/nodesocket/cryptr/blob/master/CHANGELOG.md

Support,Bugs,AndFeatureRequests

CreateissueshereinGitHub(https://github.com/nodesocket/cryptr/issues).

Versioning

Fortransparencyandinsightintothereleasecycle,andforstrivingtomaintainbackwardcompatibility,cryptrwillbemaintainedunderthesemanticversioningguidelines.

Releaseswillbenumberedwiththefollowformat:

<major>.<minor>.<patch>

Andconstructedwiththefollowingguidelines:

Breakingbackwardcompatibilitybumpsthemajor(andresetstheminorandpatch)Newadditionswithoutbreakingbackwardcompatibilitybumpstheminor(andresetsthepatch)Bugfixesandmiscchangesbumpsthepatch

Formoreinformationonsemanticversioning,visithttps://semver.org/.

License&Legal

Copyright2019JustinKeller

LicensedundertheApacheLicense,Version2.0(the"License");youmaynotusethisfileexceptincompliancewiththeLicense.YoumayobtainacopyoftheLicenseat

https://www.apache.org/licenses/LICENSE-2.0

Unlessrequiredbyapplicablelaworagreedtoinwriting,softwaredistributedundertheLicenseisdistributedonan"ASIS"BASIS,WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.SeetheLicenseforthespecificlanguagegoverningpermissionsandlimitationsundertheLicense.

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论