openssl-cipher is a library to encrypt/decrypt string or file with
opensslcommand to your system by apt, yum... whatever you desire.
Source code: http://www.openssl.org/source/
Put this file into load-path'ed directory, and byte compile it if desired. And put the following expression into your ~/.emacs.
- To encrypt a well encoded string (High level API)
- To encrypt a binary string (Middle level API)
- To encrypt a binary string (Low level API)
- To encrypt a file
To encrypt my secret Please ensure that do not forget
clear-stringyou want to hide.
(defvar my-secret nil) (let ((raw-string "My Secret")) (setq my-secret (openssl-cipher-encrypt-string raw-string)) (clear-string raw-string))