Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nodesocket/cryptr
A simple shell utility for encrypting and decrypting files using OpenSSL.
https://github.com/nodesocket/cryptr
aes-256 aes-256-cbc aes-encryption bash bash-script bash-scripting cryptography decryption encryption openssl shell-script
Last synced: 13 days ago
JSON representation
A simple shell utility for encrypting and decrypting files using OpenSSL.
- Host: GitHub
- URL: https://github.com/nodesocket/cryptr
- Owner: nodesocket
- License: apache-2.0
- Created: 2017-10-02T05:59:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-08-01T13:37:29.000Z (3 months ago)
- Last Synced: 2024-10-23T06:09:18.535Z (21 days ago)
- Topics: aes-256, aes-256-cbc, aes-encryption, bash, bash-script, bash-scripting, cryptography, decryption, encryption, openssl, shell-script
- Language: Shell
- Homepage:
- Size: 31.3 KB
- Stars: 136
- Watchers: 12
- Forks: 35
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
- Authors: AUTHORS.md
Awesome Lists containing this project
README
# cryptr
#### A simple shell utility for encrypting and decrypting files using OpenSSL.
## Installation
```
git clone https://github.com/nodesocket/cryptr.git
ln -s "$PWD"/cryptr/cryptr.bash /usr/local/bin/cryptr
```### Bash tab completion
Add `tools/cryptr-bash-completion.bash` to your tab completion file directory.
## API/Commands
### encrypt
> encrypt \ - Encryptes file with OpenSSL AES-256 cipher block chaining. Writes an encrypted file out *(ciphertext)* appending `.aes` extension.
```
➜ cryptr encrypt ./secret-file
enter aes-256-cbc encryption password:
Verifying - enter aes-256-cbc encryption password:
``````
➜ ls -alh
-rw-r--r-- 1 user group 1.0G Oct 1 13:33 secret-file
-rw-r--r-- 1 user group 1.0G Oct 1 13:34 secret-file.aes
```You may optionally define the password to use when encrypting using the `CRYPTR_PASSWORD` environment variable. This enables non-interactive/batch operations.
```
➜ CRYPTR_PASSWORD=A1EO7S9SsQYcPChOr47n cryptr encrypt ./secret-file
```### decrypt
> decrypt \ - Decrypt encrypted file using OpenSSL AES-256 cipher block chaining. Writes a decrypted file out *(plaintext)* removing `.aes` extension.
```
➜ ls -alh
-rw-r--r-- 1 user group 1.0G Oct 1 13:34 secret-file.aes
``````
➜ cryptr decrypt ./secret-file.aes
enter aes-256-cbc decryption password:
``````
➜ ls -alh
-rw-r--r-- 1 user group 1.0G Oct 1 13:35 secret-file
-rw-r--r-- 1 user group 1.0G Oct 1 13:34 secret-file.aes
```You may optionally define the password to use when decrypting using the `CRYPTR_PASSWORD` environment variable. This enables non-interactive/batch operations.
```
➜ CRYPTR_PASSWORD=A1EO7S9SsQYcPChOr47n cryptr decrypt ./secret-file.aes
```### help
> help - Displays help
```
➜ cryptr help
Usage: cryptr commandencrypt Encrypt file
decrypt Decrypt encrypted file
help Displays help
version Displays the current version```
### version
> version - Displays the current version
```
➜ cryptr version
cryptr 2.3.0
```### default
> default - Displays the current version and help
```
➜ cryptr
cryptr 2.3.0Usage: cryptr command
encrypt Encrypt file
decrypt Decrypt encrypted file
help Displays help
version Displays the current version```
## Changelog
https://github.com/nodesocket/cryptr/blob/master/CHANGELOG.md
## Support, Bugs, And Feature Requests
Create issues here in GitHub (https://github.com/nodesocket/cryptr/issues).
## Versioning
For transparency and insight into the release cycle, and for striving to maintain backward compatibility, cryptr will be maintained under the semantic versioning guidelines.
Releases will be numbered with the follow format:
`..`
And constructed with the following guidelines:
+ Breaking backward compatibility bumps the major (and resets the minor and patch)
+ New additions without breaking backward compatibility bumps the minor (and resets the patch)
+ Bug fixes and misc changes bumps the patchFor more information on semantic versioning, visit http://semver.org/.
## License & Legal
Copyright 2024 Justin Keller
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.