Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven-D-Foster committed Apr 15, 2021
1 parent e3d08b1 commit edd92e2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ HUC is a simple to use open source command line tool for performing various task
- [Web Server](#web-server)
- [SSH](#ssh)
- [Google Sheets Interaction](#google-sheets)
- [Generation of public and private keys](#generate-public-and-private-keys)
- [File encryption and decryption](#file-encryption-and-decryption)
- [Can use a properties file](#using-a-properties-file)
- [Helper Utility Functions](#helper-functions)

Expand Down Expand Up @@ -239,6 +241,28 @@ Query all data from first sheet and output it to a tab delimited file MyFile.txt
huc GoogleSheetsQuery -k="MyGoogleAppKey.json" -a="MyApplicationName" -id="dkjfsd328sdfuhscbjcds8hfjndsfdsfdsfe" MyFile.txt
```
 
### Generate public and private keys
Generate RSA public and private key files
```sh
huc GenerateKeyPair MyPublicKey.txt MyPrivateKey.txt
```

Generate RSA public and private key files with RSA length 4096
```sh
huc GenerateKeyPair -l=4096 MyPublicKey.txt MyPrivateKey.txt
```
 
### File encryption and decryption
Encrypt file with public key
```sh
huc FileEncrypt MyPublicKey.txt data.txt data.encrypted
```

Decrypt file with private key
```sh
huc FileDecrypt MyPrivateKey.txt data.encrypted dataDecrypted.txt
```
 
 
## Putting it all together
Query SQL server, convert the data, sftp it, zip it, then email the data
Expand Down

0 comments on commit edd92e2

Please sign in to comment.