Skip to content

Instantly share code, notes, and snippets.

View hvgirish's full-sized avatar

Girish Hemmige Venkatappa hvgirish

View GitHub Profile
### Keybase proof
I hereby claim:
* I am hvgirish on github.
* I am hvg (https://keybase.io/hvg) on keybase.
* I have a public key whose fingerprint is C9D3 0C0B 5CD2 4242 F897 4481 775C B0F8 A2E6 C6A0
To claim this, I am signing this object:

Simple file/stream encryption using OpenSSL

Create and store a 512-byte random encryption key named secret:

$ mkkey secret

Encrypt the contents of file with the secret key and write it to file.enc:

$ encrypt secret < file > file.enc