https://github.com/johnib/jy-fileencryptersigner
A tool to transfer files securely between two parties who have exchanged public keys
https://github.com/johnib/jy-fileencryptersigner
Last synced: 11 months ago
JSON representation
A tool to transfer files securely between two parties who have exchanged public keys
- Host: GitHub
- URL: https://github.com/johnib/jy-fileencryptersigner
- Owner: johnib
- License: other
- Created: 2016-12-31T16:04:09.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-28T12:49:40.000Z (over 9 years ago)
- Last Synced: 2025-04-01T05:15:45.668Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#FileEncrypt Class
##Description:
1. Encrypts / Decrypts a file using symmetric algorithm of your choice.
2. Signs and validates file's contents.
3. Encrypts the symmetric key + signature using asymmetric algorithm of your choice.
4. Prepares a JSON with all the relevant information for the receiver of how to decrypt the file.
## Run
### Using JAR:
```
java -jar [params]
```
### Class file:
```
java EncryptTool [params]
```
According to the params below described in the below documentation.
##Documentation
```
FileEncrypt tool
Run:
java EncryptTool -encrypt -keystore -password -myAlias -myAliasPassword -file
java EncryptTool -decrypt -keystore -password -myAlias -myAliasPassword -file
Options:
-encrypt Encrypts the file and creates a signature
-decrypt Encrypts the file validates signature
-keystore Key Store file path
-password Key Store password
-myAlias Key Store alias for my cert with private key
-myAliasPassword alias password for my cert with private key (if not defined, using keystore password)
-recAlias Key Store alias for recipient cert
-file File to encrypt and sign
```
## Contribution
* Reorganize constants and strings used around the code
* Unit test coverage
* Improve usage interface
* Better parameter names
* Support running this tool with a configuration file instead of long parameters list