GPG Guide
The GPG keys can be generated using GNU GPG or GPG Tools for MacOS users.
![image2021-8-22_15-11-18.png 529](https://files.readme.io/492c28b-image2021-8-22_15-11-18.png)
High-level Process Flow of GPG
How to Generate GPG Keys via Command Line
Step 1: Execute this command in your root/home directory
gpg --full-generate-key
Note: If you can't run this command, you may need to download GNU GPG first.
Step 2: Select the default RSA and RSA key type.
![keyType.png 484](https://files.readme.io/e0fa7bf-keyType.png)
Step 3: Enter 2048 as the default keysize for the encryption key.
![keySize.png 364](https://files.readme.io/277f5bd-keySize.png)
Step 4: Enter how long the key should last.
E.g. 10d, 10w, 10m, 1y
![expiration.png 343](https://files.readme.io/79d609e-expiration.png)
Step 5: Enter your name and email address. You may also add a comment if you want.
![userID.png 401](https://files.readme.io/3801ee6-userID.png)
Step 6: Enter Passphrase.
![passphrase.png 543](https://files.readme.io/2d01e32-passphrase.png)
Step 7: You have successfully generated your keys. Save the key details for reference.
![generatedKey.png 524](https://files.readme.io/bc37172-generatedKey.png)
Step 8: Export your public key by executing this command:
gpg --armor --export <pub_id> > my-pubkey.asc
Step 9: Provide your public key to Maya.
How to Generate GPG Keys via GPG Tools for MacOS users
Step 1: Download and install the GPG Suite.
Step 2: Generate a new key in GPG Keychain app.
![createNewKey.png 1099](https://files.readme.io/30a19de-createNewKey.png)
Step 3: Enter Passphrase.
![passphrase.png 543](https://files.readme.io/fddc948-passphrase.png)
Step 4: Select your key and click the 'Export' button.
![exportKey.png 1097](https://files.readme.io/b0bedbb-exportKey.png)
Step 5: You have successfully exported your Public Key.
![keysExported.png 423](https://files.readme.io/7634ed5-keysExported.png)
Step 6: Provide your public key to Maya.
Decrypting Files
The encrypted document can only be decrypted with the paired private key. You cannot decrypt a document if your public key is not the one used to encrypt it.
Once you have the encrypted file from Maya, you can decrypt it very easily using this command:
gpg --decrypt sampleEncryptedFile.asc > plain.txt
See also
Updated almost 3 years ago