PGP Messages

FREEMIUM
By mbcreative
Updated 3 months ago
Communication
-/10
Popularity Score
-
Latency
-
Success Rate

PGP Messages API Overview

PGP Messages API lets you encrypt and/or decrypt data with simple password or PGP keys. Generate PGP and start communicating securely. Build end-to-end chat apps, email apps or anything else that requires secure communication. No data is stored on API side. Private white label is also available.

Contact API Provider
star-blueRate

Simple password protected data

By using endpoints /encrypt or /decrypt
By default, the chiper algo AES256 is used.
You can overide this by setting up algo to other available algos: 3des, tripledes, cast5, aes128, aes192 or aes256.

Example:

{
   "message": "Hello World",
   "password":"123456",
   "algo": "3des"
}

Lets take an example of Alice trying to send message over the public network to Bob.
Alice will call /encrypt method and encrypt the message with her password.
Alice will then send the encrypted message to Bob.
Bob will now call /decrypt method with Alice password to decrypt the message.
In this case, Bob needs to know Alice password to decrypt the message.

PGP protected data

This requires PGP key either generated by API /generate or using your own PGP keys

How it works

Lets take an example of Alice trying to send message over the public network to Bob.
Alice will call /encrypt/pgp method with params:

{
    "public_key":"Bob public key",
    "private_key":"Alice private key",
    "password":"Alice PGP private key password",
    "message":"Hello World"
}

Alice will send the ecrypted text to Bob.
Bob will now call /decrypt/pgp method with params:

{
    "public_key":"Alice public key",
    "private_key":"Bob private key",
    "password":"Bob PGP private key password",
    "message":"PGP Message"
}

Explanation

Alice encrypted the messages using Bob's public key, but also, she signed the message with her private key.
This means, only Bob can decrypt the message.
If Bob tries to decrypt the message without using Alice public key, the signature will not match and text will not be decrypted.

Support

Please open a discussion thread if you have any questions, feedback or want to add some feature.

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication