Public Keys
You can message me securely at nathanieljwise@protonmail.com. Encrypt your file with the script below using either of my public keys, then email me the single encrypted file. The ECC key (P-384) is preferred; the RSA-4096 key is available if you need it.
How to encrypt
- Install the dependency:
pip install cryptography -
Download hybrid_encrypt.py
(also on GitHub).
Its SHA-256 is
28a402f949fd717e33061d9bd424783e9b8e5430fd6863e53e119cfb31d4a1e0. - Download one of the keys below and check its fingerprint.
-
Encrypt your file:
python hybrid_encrypt.py encrypt --pubkey njwise_ecc_publicKey.pem --infile message.txt --outfile message.enc
Keys
-
ECC key (P-384)
(also on GitHub)
SHA-256 fingerprint:659e6494f682d9e7669ad20abd2907bee5a06674e97eabbdfa06f2d22dd8c192 -
RSA key (4096-bit)
(also on GitHub)
SHA-256 fingerprint:a98270aec7ff8c17f9798f9f37d34a263c9e85701ff54961139d82aff66abfe2
To check a fingerprint, run these two commands on the downloaded key and compare the result:
openssl pkey -pubin -in njwise_ecc_publicKey.pem -outform DER -out key.der
openssl dgst -sha256 key.derKEYS.md on GitHub, a separate system from this server, lists the same fingerprints and script hash, along with key creation dates and the rotation history. Compare them before you rely on a key. If they ever differ, don't use the key and contact me another way.
The scheme is hybrid public-key encryption: ECDH-ES (P-384) or RSA-OAEP key wrapping with AES-256-GCM. It does not authenticate the sender, and email subjects, filenames and timestamps are not encrypted.
-----BEGIN PUBLIC KEY-----
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAE7RwPt5AQj46i73MtAqKQZONLh/Cu73xB
VJWKmNEMzNnsJOBm61VwYmDniKX4XzVBdYmg116OFvEb2T4KbTtxks1a2yFZT/ag
XQuvSGtLxW3oeT3gtz0HC1rSTAUfoByA
-----END PUBLIC KEY-----
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAr7iC6DsK+bD2ftE+pnDX
vt1xll5PX5Nzhy2ZCMRU+edtruZBMztnWOJuw341Y8ul48f436kddS9pBIONVVYP
Zf3s88Yn6N+I8pGo7q3a0vJj2IDroCobmu3NdrM9F0lklRfVr/wMCrA/B57OpmQN
a73LtzPqk1kagKqARXF39RC39vNndjSGfUimUUtjLsiD9Rj9q9DhPG3G6cb6jzfN
4HWM0ArJ3ep5HBl0FY4OJjxpvHAREcVddjKVFgtqU6HM9EyXr+wp7ZauSmDnX1wi
BEBF1q1AVGjhaxxLz1m8IBrtZfav9IxkQAirnCNVhuXhmy180tcXTrsPs3/Ezh7n
PoWzcbO7FBi87TsNzpidB7BMPWU/QltAhA+0/V2bPIe2EaCOe4TdOyEO6rGpMGAL
xH2cP39XEoJl4IcvvhRYMtXh/KZucOZXhR6KSXbaNROg8V5qxU2nyTDFph7/+66/
ZuHP7LReEL6j7/o3d5EQXhUDwDBIPwVU3C71Y0MVbqazIqZ1QvREthIUPrSIpBk5
V17H+4AQqSudGTxcjhsVN90/6+Crei5TwfuOO+Hohp6ZB9oLnouuWjzmEjzylAb7
/eVUdq7B/GNDc/MSawf9uCjK8/j2MSGTkpIawdcv9NHvKeKbdOLmnhLQZs71nC/N
ikz5EUfbBbfWYRRzsu8Z8ZECAwEAAQ==
-----END PUBLIC KEY-----
Retired keys
These earlier keys have been replaced; do not encrypt to them.
-
ECC (P-384), SHA-256 fingerprint:
7bba320c9c60220ceca716140e1d9cc1a606c0d86a26180d79a0462925e2928d -
RSA (4096-bit), SHA-256 fingerprint:
bd7a665e083cf7eab6ec26e3b0d190aa12363eb4ecf1ed4cbb423939f394e4d9