https://github.com/vroncevic/ossl
Encrypting/Decrypting files
https://github.com/vroncevic/ossl
aes-256 bash decrypt decrypt-files encrypt encrypt-files linux macos openssl shell unix
Last synced: 3 months ago
JSON representation
Encrypting/Decrypting files
- Host: GitHub
- URL: https://github.com/vroncevic/ossl
- Owner: vroncevic
- License: gpl-3.0
- Created: 2016-02-15T16:45:44.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-06-14T19:09:50.000Z (about 2 years ago)
- Last Synced: 2025-03-28T21:47:00.356Z (about 1 year ago)
- Topics: aes-256, bash, decrypt, decrypt-files, encrypt, encrypt-files, linux, macos, openssl, shell, unix
- Language: Shell
- Homepage: https://vroncevic.github.io/ossl
- Size: 6.81 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Encrypting/Decrypting files

**ossl** is shell tool for operating openssl.
Developed in **[bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell))** code: **100%**.
[](https://github.com/vroncevic/ossl/actions/workflows/ossl_shell_checker.yml)
The README is used to introduce the tool and provide instructions on
how to install the tool, any machine dependencies it may have and any
other information that should be provided before the tool is installed.
[](https://github.com/vroncevic/ossl/issues) [](https://github.com/vroncevic/ossl/graphs/contributors)
**Table of Contents**
- [Installation](#installation)
- [Usage](#usage)
- [Dependencies](#dependencies)
- [Shell tool structure](#shell-tool-structure)
- [Docs](#docs)
- [Copyright and licence](#copyright-and-licence)
### Installation

Navigate to release **[page](https://github.com/vroncevic/ossl/releases)** download and extract release archive.
To install **ossl** type the following
```bash
tar xvzf ossl-3.0.tar.gz
cd ossl-3.0
cp -R ~/sh_tool/bin/ /root/scripts/ossl/ver.3.0/
cp -R ~/sh_tool/conf/ /root/scripts/ossl/ver.3.0/
cp -R ~/sh_tool/log/ /root/scripts/ossl/ver.3.0/
```
Self generated setup script and execution
```bash
./ossl_setup.sh
[setup] installing App/Tool/Script ossl
Mon Dec 15 05:20:24 PM CET 2025
[setup] clean up App/Tool/Script structure
[setup] copy App/Tool/Script structure
[setup] remove github editor configuration files
[setup] set App/Tool/Script permission
[setup] create symbolic link of App/Tool/Script
[setup] done
/root/scripts/ossl/ver.3.0/
├── bin/
│ └── ossl.sh
├── conf/
│ ├── ossl.cfg
│ ├── ossl.logo
│ └── ossl_util.cfg
└── log/
└── ossl.log
3 directories, 9 files
lrwxrwxrwx 1 root root 38 Dec 15 05:20 /root/bin/ossl -> /root/scripts/ossl/ver.3.0/bin/ossl.sh
```
Or You can use docker to create image/container.
### Usage
```bash
# Create symlink for shell tool
ln -s /root/scripts/ossl/ver.3.0/bin/ossl.sh /root/bin/ossl
# Setting PATH
export PATH=${PATH}:/root/bin/
# Encrypt file
ossl enc /opt/origin.txt
ossl ver.3.0
Mon Dec 15 05:20:44 PM CET 2025
[check_root] Check permission for current session? [ok]
[check_root] Done
██
░██
██████ ██████ ██████ ░██
██░░░░██ ██░░░░ ██░░░░ ░██
░██ ░██░░█████ ░░█████ ░██
░██ ░██ ░░░░░██ ░░░░░██ ░██
░░██████ ██████ ██████ ███
░░░░░░ ░░░░░░ ░░░░░░ ░░░
Info github.io/ossl ver.3.0
Issue github.io/issue
Author vroncevic.github.io
[ossl] Loading basic and util configuration!
100% [================================================]
[load_conf] Loading App/Tool/Script configuration!
[check_cfg] Checking configuration file [/root/scripts/ossl/ver.3.0/conf/ossl.cfg] [ok]
[check_cfg] Done
[load_conf] Done
[load_util_conf] Load module configuration!
[check_cfg] Checking configuration file [/root/scripts/ossl/ver.3.0/conf/ossl_util.cfg] [ok]
[check_cfg] Done
[load_util_conf] Done
[check_op] Checking operation [enc]? [ok]
[check_op] Done
[check_tool] Checking tool [/usr/bin/openssl]? [ok]
[check_tool] Done
[ossl] Checking file [/opt/origin.txt]? [ok]
Type password: [ossl] Encrypt file [/opt/origin.txt]
[ossl] Encrypted file: -salt -in /opt/origin.txt > -out /opt/origin.txt.aes
[ossl] Done
[logging] Checking directory [/root/scripts/ossl/ver.3.0/log/]? [ok]
[logging] Write info log!
[logging] Done
[ossl] Done
```
### Dependencies
**ossl** requires next modules and libraries
* sh_util [https://github.com/vroncevic/sh_util](https://github.com/vroncevic/sh_util)
### Shell tool structure
**ossl** is based on MOP.
Shell tool structure
```bash
sh_tool/
├── bin/
│ └── ossl.sh
├── conf/
│ ├── ossl.cfg
│ ├── ossl.logo
│ └── ossl_util.cfg
└── log/
└── ossl.log
```
### Docs
[](https://ossl.readthedocs.io/projects/ossl/en/latest/?badge=latest)
More documentation and info at
* [https://ossl.readthedocs.io/en/latest/](https://ossl.readthedocs.io/en/latest/)
* [https://www.gnu.org/software/bash/manual/](https://www.gnu.org/software/bash/manual/)
### Copyright and licence
[](https://www.gnu.org/licenses/gpl-3.0) [](https://opensource.org/licenses/Apache-2.0)
Copyright (C) 2016 - 2026 by [vroncevic.github.io/ossl](https://vroncevic.github.io/ossl)
**ossl** is free software; you can redistribute it and/or modify
it under the same terms as Bash itself, either Bash version 4.2.47 or,
at your option, any later version of Bash 4 you may have available.
Lets help and support FSF.
[](https://my.fsf.org/)
[](https://my.fsf.org/donate/)