Skip to content

Instantly share code, notes, and snippets.

@papodaca
Created February 13, 2017 22:40
Show Gist options
  • Save papodaca/d140f5d52469d17114334636805c3ddb to your computer and use it in GitHub Desktop.
Save papodaca/d140f5d52469d17114334636805c3ddb to your computer and use it in GitHub Desktop.
Utility scripts to lock and unlock files on disk
#!/bin/bash
openssl aes-256-ecb -salt -in $1 -out $1.tmp
mv $1.tmp $1
#!/bin/bash
openssl aes-256-ecb -d -salt -in $1 -out $1.tmp
mv $1.tmp $1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment