Skip to content

Instantly share code, notes, and snippets.

View jirihradil's full-sized avatar
🦄

Jiri Hradil jirihradil

🦄
  • Invoice Home Inc.
  • Austin, TX
View GitHub Profile
@sstephenson
sstephenson / Simple Encryption.md
Created April 11, 2013 23:48
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