PGP Safe

Gathering version information…

TL;DR

No wheels were reinvented. This SPA is essentially a wrapper around PGP (GPG) with an optional bcrypt password hashing. This software doesn't use servers, nor does it send your data off to some mysterious location. Everything happens right in your browser. Just a friendly reminder: all usage is based on your own decisions, so proceed with care and enjoy.

Static Version

Trust is overrated, right? Grab your copy of the static version of PGP Safe and revel in the peace of mind that only guaranteed offline mode can bring.

Technical Details

The format of the encrypted message is as follows:
  • With bcrypt password hashing

    Optional Memo
    PGP+bcrypt:
    <salt><pgp_encrypt(message, bcrypt_hash(passwordsalt))>

    Note: there are no delimeter between the bcrypt salt and the encrypted message itself – salt can be identified and extracted by it's structure.

    Bcrypt standard salt format is: $<hash-algorithm>$<cost-factor>$<22-characters> or, if you love regular expressions: /\$(2a|2y|2b)\$\d+\$.{22}/
  • Without bcrypt password hashing

    Optional Memo
    PGP:
    <pgp_encrypt(messagepassword)>
Note: In all scenarios, the PGP: / PGP+bcrypt: header is optional and can be omitted or replaced as needed. Only the content after the last colon : is retained; everything before it is disregarded.

Sample Python Script

A sample Python script for decryption is available. You can view it here. It's a good idea to download and print it. Remember, nothing is immortal, not even this tool – except for a geeky friend who knows Python.

Source Code

Oh sure, I know, I have to upload it to GitHub. It'll happen, eventually. In the meantime, you can take a peek at the current version by pressing Ctrl+U in your browser.

License & Disclaimer

This program is free software. It comes without any warranty, to the extent permitted by applicable law. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.

Third-party libraries

In alphabetical order: