Skip to content

Instantly share code, notes, and snippets.

View pjudt's full-sized avatar

Paul Judt pjudt

View GitHub Profile
@pjudt
pjudt / Simple Encryption.md
Created September 28, 2018 02:48 — forked from sstephenson/Simple Encryption.md
Simple file/stream encryption using OpenSSL

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