Addtools/cryptr-bash-completion.bashtoyourtabcompletionfiledirectory.
API/Commandsencryptencrypt<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.aesYoumayoptionallydefinethepasswordtousewhenencryptingusingtheCRYPTR_PASSWORDenvironmentvariable.Thisenablesnon-interactive/batchoperations.
➜CRYPTR_PASSWORD=A1EO7S9SsQYcPChOr47ncryptrencrypt./secret-filedecryptdecrypt<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.aesYoumayoptionallydefinethepasswordtousewhendecryptingusingtheCRYPTR_PASSWORDenvironmentvariable.Thisenablesnon-interactive/batchoperations.
➜CRYPTR_PASSWORD=A1EO7S9SsQYcPChOr47ncryptrdecrypt./secret-file.aeshelphelp-Displayshelp
➜cryptrhelpUsage:cryptrcommand<command-specific-options>encrypt<file>Encryptfiledecrypt<file.aes>DecryptencryptedfilehelpDisplayshelpversionDisplaysthecurrentversionversionversion-Displaysthecurrentversion
➜cryptrversioncryptr2.2.0defaultdefault-Displaysthecurrentversionandhelp
➜cryptrcryptr2.2.0Usage:cryptrcommand<command-specific-options>encrypt<file>Encryptfiledecrypt<file.aes>DecryptencryptedfilehelpDisplayshelpversionDisplaysthecurrentversionChangeloghttps://github.com/nodesocket/cryptr/blob/master/CHANGELOG.md
Support,Bugs,AndFeatureRequestsCreateissueshereinGitHub(https://github.com/nodesocket/cryptr/issues).
VersioningFortransparencyandinsightintothereleasecycle,andforstrivingtomaintainbackwardcompatibility,cryptrwillbemaintainedunderthesemanticversioningguidelines.
Releaseswillbenumberedwiththefollowformat:
<major>.<minor>.<patch>
Andconstructedwiththefollowingguidelines:
Breakingbackwardcompatibilitybumpsthemajor(andresetstheminorandpatch)Newadditionswithoutbreakingbackwardcompatibilitybumpstheminor(andresetsthepatch)BugfixesandmiscchangesbumpsthepatchFormoreinformationonsemanticversioning,visithttps://semver.org/.
License&LegalCopyright2019JustinKeller
LicensedundertheApacheLicense,Version2.0(the"License");youmaynotusethisfileexceptincompliancewiththeLicense.YoumayobtainacopyoftheLicenseat
https://www.apache.org/licenses/LICENSE-2.0
Unlessrequiredbyapplicablelaworagreedtoinwriting,softwaredistributedundertheLicenseisdistributedonan"ASIS"BASIS,WITHOUTWARRANTIESORCONDITIONSOFANYKIND,eitherexpressorimplied.SeetheLicenseforthespecificlanguagegoverningpermissionsandlimitationsundertheLicense.
评论