Bitcoin Forum
September 23, 2018, 11:17:35 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: [Eng: Tutorial] PGP Signature - Encrypt/Decrypt message - Fingerprint  (Read 297 times)
mdayonliner
Sr. Member
****
Offline Offline

Activity: 294
Merit: 274


Over 13BTC http://bit.ly/BTCLoan


View Profile
May 21, 2018, 01:18:56 AM
Merited by notaek (5), eddie13 (3), krishnapramod (1), okae (1), BitCryptex (1), Heisenberg_Hunter (1), shahzadafzal (1)
 #1


Pretty Good Privacy
English Version Tutorial (Windows Only)
Please wait 1/2 minutes (depending on your connection speed) to load all the images



Table of Contents




Abstract
Go to top

Many people do not have any clue about PGP encryption/decryption. It was same for me however I had to learn it the hard way. Explore the topic The BCT PGP/GPG Public Key Database: Stake Your PGP Key Here to understand why you need to know it. If you are an Electrum wallet user then I am pretty sure you have seen a signature link next to the installation file. You also seen a warning notification on the top which talks about a fake copy of Electrum.


Long story short, PGP gives you extensive privacy and you can easily validate the authentic source of your received file/text. In this tutorial we will learn...

# How to create PGP Signed message and signature
# How to verify a PGP Signed message and signature
# How to encrypt a message
# How to decrypt a message

Once you get a good grip of these 4 basics, I believe you will be able to grab the rest without having any further assistance.



A Better Understanding
Go to top

Before we start, it's gonna help you if I give you a brief. PGP consist of two Keys...
1. Private key <=== You need it to decrypt a content
1. a) You also need a passphrase, in other words a strong password.
2. Public key <=== You need it to encrypt a content

Think about a very sensitive message you want to email to your friend. You don't want any gov agency or any spy read the message. These people can easily access your email server. To avoid it, ask you friend to give his PGP public key. Once you have it then encrypt the message and email the encrypted message to your friend. Now only your friend can decrypt it because he knows the private key.

Warning: Do not share your private key and passphrase with anyone.


Getting Started
Go to top

Download and Installation Go to top
You will need Kleopatra desktop application. Click here and download gpg4win-3.1.1.exe (this is the current version, you might find the same or a different version but don't mind, whatever the version they will have on their server, it will be downloaded). Once download done, go ahead and install the application (I assume, you know basics of installing an application). Once installation done, you will be seeing Kleopatra icon on your desktop.
"KleopatraLoading"

Create Your First Private and Public Keys Go to top

1. Open Kleopatra > File > New Key Pair...
LoadingOpeningKleopatra
Click here if unable to see image

2. Click on Create a personal OpenPGP key pair
LoadingCreateA personal OpenPGP key pair
Click here if unable to see image

3. Enter Name and Email > Click Next
Loading without name and email Loading with name and email

In our case, we are using...
Code:
Name: mdayonliner Tutorial
Email: tutorial@bitcoinTalk.com
Of course these are made up information to demonstrate the tutorial

4.Click Create
Loading Click Create

5.Enter passphrase (consider a strong password) -> Repeat -> click OK
Loading without passphrase Loading with passphrase

In our case we have used... <=== Do not publish it in public ever
Code:
tutorialMday

6. Record the following information...
          6.1. Fingerprint : In a text file or any other file of you choice
Code:
1995947308182CC77403F2FF686E410CD53E41AF
         6.2. Make a Backup Of Your Key Pair...
          6.3. Upload Public Key To Directory Service...
          6.4 Finish
          Loading Record the following information...

          6.2 Click on Make a Backup Of Your Key Pair...
          Click on Before Make a Backup Of Your Key Pair... Click on afterMake a Backup Of Your Key Pair...

          I choose my desktop to save the file and named the file backupKeyPair.
          So it appears to be like this -> C:/Users/Admin/Desktop/backupKeyPair.asc before clicking the OK button.

          Before clicking ok button

          Click Ok button -> Enter passpharse -> Click Ok
          Loading... Loading...
          Click Ok
          Loading...

          This process just exported the PRIVATE KEY  <===== Do not publish it in public ever
          Locate the file backupKeyPair.asc from desktop and open it with notepad
Code:
-----BEGIN PGP PRIVATE KEY BLOCK-----

nQPGBFsAeRMBCADDQQeWxiHs6nze5vzWiqqW3Wi0BZpeouA7gUrG71LfAqV3pZ5A
uaVCdB3hUt8oohJq3x/641JqJ+sKbhy2XtgQ7TTzx6Q/7l0Zh4iwWkzHgZHQvpwH
e9u1OpVtTJwQbzVeowZBBIkSpAfuh4TpFcIkRg/9y5v8TuUbKXwIdWHZJ8gHc775
T7pW5aiUYBKyPJwcBrFJhBzWDlc/JJOwPsMYUy17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GZWUcwgYLMdzSfL/aG5BDNU+Qa8FAlsAeRMC
GwwACgkQaG5BDNU+Qa8iIwf+KzlXz5oNyJYD+n2kXfLQk3GD3wslkrkus2Pwq2TU
vbPWoe/7jMgYgbI/L1flyWLk00YDBnsqRE1HTLJKQ8/hUUX2gSSxQR0ahVnnKW+1
jZ6j4pnjmNIv2PQL8bAkeY2QeH77SREPnFTsVgNrkE9DW6McFgaKDKgy90h+fimb
bWeDvgz+S2fKHMPLLr2eFeNU+Tgy6PMWGPuCkALq/jik2qmbAeD7T1eaOfbK9oLM
GA1rRnxQ+mnoNrjgmd81sO/qkNkBM4tzWq9snyMScAQY/EbF07wrseIqhub6233b
v8sY3ivHnyB5YtyJNyktcbQ+CNaJYvvUactVN5y9esMlKg==
=2cnr
-----END PGP PRIVATE KEY BLOCK-----

          6.3. Click on Upload Public Key To Directory Service... -> wait a little bit -> Click OK
          This will upload the Public Key online in the PGP Directory Service
          Loading... Loading...

          Click Finish
          Loading...

          You should be seeing your newly created PGP user ID
          Loading...

          Now open your internet browser and go to
Code:
https://sks-keyservers.net/pks/lookup?op=get&search=0x<FINGERPRINT>

          In our case you should going to...
Code:
https://sks-keyservers.net/pks/lookup?op=get&search=0x1995947308182CC77403F2FF686E410CD53E41AF
         You should be seeing you public key online and can share it with anyone.

          By any chance if you do not see any information online then follow these steps to Publish Your Public Key on Server

          6.3.a. Right click -> Click on Publish on Server
          Loading...

          After few seconds you will be seeing a success message. Click Ok
          Loading...

          Now visit the Key server
Code:
https://sks-keyservers.net/pks/lookup?op=get&search=0x1995947308182CC77403F2FF686E410CD53E41AF
         You should be seeing you Public Key online
Code:
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.6
Comment: Hostname: keys2.kfwebs.net

mQENBFsAeRMBCADN4/N4ML8VH9468gXLlCoSXgiVj8S0x+ISkcau5dzGL2r1Unkh7tmerS3K
IdltdIsQvC9c4IrOwAcmXX9XyktBCukWAH3DZfr3eTeIRE9BvP1G6Zxt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A29JKSc2hexq7N8zqSaG+5G031s5NXP7MCFYS2
QJmm+9s2jwARAQABiQE2BBgBCAAgFiEEGZWUcwgYLMdzSfL/aG5BDNU+Qa8FAlsAeRMCGwwA
CgkQaG5BDNU+Qa8iIwf+KzlXz5oNyJYD+n2kXfLQk3GD3wslkrkus2Pwq2TUvbPWoe/7jMgY
gbI/L1flyWLk00YDBnsqRE1HTLJKQ8/hUUX2gSSxQR0ahVnnKW+1jZ6j4pnjmNIv2PQL8bAk
eY2QeH77SREPnFTsVgNrkE9DW6McFgaKDKgy90h+fimbbWeDvgz+S2fKHMPLLr2eFeNU+Tgy
6PMWGPuCkALq/jik2qmbAeD7T1eaOfbK9oLMGA1rRnxQ+mnoNrjgmd81sO/qkNkBM4tzWq9s
nyMScAQY/EbF07wrseIqhub6233bv8sY3ivHnyB5YtyJNyktcbQ+CNaJYvvUactVN5y9esMl
Kg==
=51N/
-----END PGP PUBLIC KEY BLOCK-----

So, we have now our...
1. Private Key
2. Passphrase

3. Public Key
4. Fingerprint


Red: Private only | Green: Publicly can be shared

Create PGP Signed Message and Signature Go to top

Assume below is our message and we want to sign it using PGP Signature
Code:
My username mdayonliner. It's m-day-online-r
I am going to sign this message using PGP

1. Open Notepad > Type the message > Select the message > Copy the message.

2. Open System Tray > Right Click on Kleopatra icon > Mouse hover on Clipboard > Click OpenPGP-Sign...
Loading... Loading...

3. Click Next > Enter passphrase > Click OK

By default it should have your Key pair to sign for, we can call a Key pair as Certificate. If you have more than one for yourself then you can change it to the one you are going to sign for.
Loading... Loading...

4. Click OK

Loading...

5. Open another Notepad > Paste (Ctrl+V)

Code:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

My username mdayonliner. It's m-day-online-r
I am going to sign this message using PGP
-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEGZWUcwgYLMdzSfL/aG5BDNU+Qa8FAlsB4ccACgkQaG5BDNU+
Qa8QAwgAxO2JiyN9zgJWPYXK2Cw7+SxHxZIN3wQVzuhZZZEjm9p0ZR8ToGu4RbtD
x5V8vB0tqs1qlEaBECWNp7ia/xYa9JRxFSFydtEKOPC2uWSH7oVFv2WlsLDgyI+V
h8h6RwMcpGOIrKcUHDCkhJd/JrFMqn8aKoAI9mLQ1ynpUjXleGtRjidXLGXmqK60
dgF83F+202xfd1Nn03Y+d8xkaIMtwzCPL52zksNchLScsnTG8gK6QhrTAqlhkDP8
p/mJdrPqRm0Opy9byL4waDBXmd3LgWesH9LuOb13ynHQszSrbm7WaJ8pTmyqnoDI
qPZo0HT17OP8oJTcyRFxxxyudqprSA==
=3dWa
-----END PGP SIGNATURE-----

Congratulations, you have just created your first PGP Signed Message with Signature.

Verify PGP Signed Message and Signature Go to top

Let's say we want to verify the PGP Signed Message of Husna QA. Below we have our PGP Signed Message with Signature
Code:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Date: 2018-03-29
Bitcointalk.org login: Husna QA (1827294)
Bitcoin address: 1HdK4YRuPrgWrTkFHTPaJoLvYJ8Cgehgnc
E-mail: husna.qurrota.a.02@gmail.com

PGP fingerprints:
RSA: 0x58BC997445D96F68DB65C169A2CA884F183D22E9
Ed25519: 0xC9B290C8C87C9BB5F440E82AD21FD04306AED362

I declare that aforestated Bitcoin address
may issue signatures controlling the aforestated Bitcointalk account.
I declare that my aforestated PGP Fingerprint RSA and Ed25519 Certification key is
the peremptory trust anchor for my online identity at this time,
and unless/until that key signs a statement declaring otherwise,
Unless this statement be revoked or modified by a statement bearing
authentication rooted in that key.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEWLyZdEXZb2jbZcFposqITxg9IukFAlq7qYUACgkQosqITxg9
IunM6w//Ruw0yjVjPMb4N2QKS8Dun+C1leD9miTPWvTdMiyCLddFmRCiwI8fb/D/
T3vZxJwpIGn89271l4l5slnIziCpZ5HaVEJeAbGVr5Q6zwBv4cXixa29fK7zYcB4
uPeGX4rIHy3eGFKamZiSbibuZ61lP//B9EI+JBdH6yvPxFVxryKsp3MmNjUERhYW
M+1nkHe8Pf8hkcDhevpWXlc7Q7aplWkSnjZ1qE9z0C9mZ0KIqNlymwPMhamfjBTJ
aFkQq3pioKiaAsHLcB3UVHktUlaYuWJkODF8s67MVwWOe/j8WqOOXBMmbZ5n8241
i942Mmqegqujvx5uRUqaD6uWwBX2u4PzQzFEHYslKuns9jmQaWARx2rRtaav2Z3R
FBK9O80wifC7ts1z6XfVkNDjzzcl/DtHAtsqYj8k6c79h2ths28PJP1bCNsb0yr1
pO6S7lAs9f+yvrwOMkJL88d0D+u0vbWhlD2liRMv0WeWdMtxwQGKOU1I4OLkoPU6
IsrbNZODhSunWzdD525t8yYV/isgyv70EY3CpA35YjrfrZ1BlmNwtsary7tTaDd2
MmDHQAf1qQokYNNZIOZ0GaLaxEclbyEa+1eKqGdPUCp03emfreCmcDg1d+Cwz3Yr
V2xoTsOwVB5BGpSPV42RBjCwwoBa2QMokUPhTxTDmsw2Qm7RjA8=
=0PbZ
-----END PGP SIGNATURE-----

1. Select everything in the code tag > Copy (Ctrl+C)

2. Open System Tray > Right Click on Kleopatra icon > Mouse hover on Clipboard > Click Decrypt/Verify...
Loading... Loading...

3. Click Search > Wait few seconds until you see an active window > Select > Click Import

You will need PGP Fingerprint/Public Key of Husna QA, imported in Kleopatra Certificate list. If you do not have it prior then start from search.

Loading... Loading...

4. Check 1 & 2 > Click Next (3)

Loading... Loading...

5. Choose your key pair > Check Certify only for myself > Click Certify

Loading...

6. Enter passphrase > Click OK

Loading... Loading...

7. Click Finish (1) > If the imported information are valid then you will see green > Click Finish(2)

Loading... Loading...

8. Open another Notepad > Paste (Ctrl+V)

Code:
Date: 2018-03-29
Bitcointalk.org login: Husna QA (1827294)
Bitcoin address: 1HdK4YRuPrgWrTkFHTPaJoLvYJ8Cgehgnc
E-mail: husna.qurrota.a.02@gmail.com

PGP fingerprints:
RSA: 0x58BC997445D96F68DB65C169A2CA884F183D22E9
Ed25519: 0xC9B290C8C87C9BB5F440E82AD21FD04306AED362

I declare that aforestated Bitcoin address
may issue signatures controlling the aforestated Bitcointalk account.
I declare that my aforestated PGP Fingerprint RSA and Ed25519 Certification key is
the peremptory trust anchor for my online identity at this time,
and unless/until that key signs a statement declaring otherwise,
Unless this statement be revoked or modified by a statement bearing
authentication rooted in that key.

Congratulations, you just verified your first PGP Signed Message with Signature.

Create Encrypted Message Go to top

Before creating an Encrypted message we need someone else's PGP Fingerprint/Public Key Certificate. We already imported Public Key information for Husna QA. So, lets assume we will send him/her the Encrypted message. <<=== Please literally do not send him/her any message. Hack, s/he does not even know about this tutorial.

Now assume, below is our message and we want to Encrypt it.
Code:
It's m-day-online-r going to Encrypt this message..
..using Kleopatra PGP Encryption

1. Open Notepad > Type the message > Select the message > Copy the message.

2. Open System Tray > Right Click on Kleopatra icon > Mouse hover on Clipboard > Click Encrypt...
Loading... Loading...

3. Click Add Recipient(1)

Loading... Loading...

4. Select Recipient > Click OK (2) > Click Next

Loading... Loading...

5. Click OK

Loading...

6. Open Notepad > Paste (Ctrl+V)

Code:
-----BEGIN PGP MESSAGE-----

hQIMAxIivShhBiNAAQ/7BfTGV45X7tTjagQ/mfukFLFqo/FfrHLqVhySDYsYsoE5
hAXlQeKEm6mBC5XR30OutDYCEdQSW9JJTNrBFXwdghyHsfn1aVRZqNFrxtJYRM4C
yqFqfTPztfq8J4AGm9AtRmBi/EfIRI1QqgjGKokhHzHIeMUzO5wr5CnTfgH/8Xp2
SWq7R7b4ZQ0kxt2Jfj0n80wzWL/s1+IABl1JdiXeRqabaNrHR0VhrJYZlRYoZenC
/HXwlUWooyVG1oMfBr+qiaVddmzX2q6V5HrO4HBtaQ8bePK/zAdJE0KBKtcH0F3t
q4g7jErt7mmqw4WI+6l0wbix3FwFPPWFp9UkkV7QflUzvLHrEK+dK0Sx8+mALEhT
bkaGTypBslbAQGWXdQ4F66Zg/Pxkbu46IF8SZki9PTi5ngIwH6sOTgQFcXDlsbDz
eOLf1BH50LP0C5BbeVlHAHl+uP4A5Sd2ng6d0lACoMPNYCJEIERFSdoVG2N4s3QT
diihurYJCKLRO0g/vIEtoxnXltg9TAlJ0VQoGhirN4bMiNe1KV7qpl4/xXeFbjVD
IuiDFGG6q7Als9rzbt8dJKAMjOwlG/ai6vP/51IUqA0NaMX/HlEI2p8ZmqyeW28y
SnoRSOL4A3G6Bv7wORsFdX0DTRdCLAqtzF/HPx+U8xBMw2Uu1/sUrIAMtG6fTgXS
hgFrTTMr9mAJ83NbbKU0408hYMuIKPYM+fibolxxLnvSD40EuzsR5aeKOmfD/Le4
91PU5AQeWkcMSSuGvHDgGUZUyhrGM+bYV2ACNQ3+Hj1ZuRLsYoukcPxIo5ovpALs
xqSFtN1jNFhSShFagnGJuXyDi7HIz7TgQS9E+HmAfBF8ZeiW10G+
=ONYM
-----END PGP MESSAGE-----

Congratulations on Encrypting the message. If you send it to Husna QA, then only s/he can Decrypt it and read the original message.

Decrypt an Encrypted Message Go to top

Assume you know my PGP Fingerprint/Public Key. You sent me an Encrypted message which is below.

Code:
-----BEGIN PGP MESSAGE-----

hQEMA1cp8vlhFFhCAQf9FwUtrVFPHGIk+BOKOm5E5KpfIJz38hta1bz45uo4sxK3
JWgKM6H6WIwu/KJ8TFqgDIE6kHJjD/RRbPyZgm4eK0I6Wf328U3m5kAPOfijfF9M
lOq2Ge3RJM++aMk+n4DWTk9yYCr3gjlA+okAweU2A/FceadcK4oI9TEvtEADjali
aVaycGckF1v+d6chtBsWwb2pIvGOR+2kYSCYh9eKOLv2mPe4drjQ2rv5CupeDkms
bOeI65iKdc2Lgij4x+BbaITV0BDKnu/cWcRdAijGga1YdJAtAh6HSnjUsfiKj5bU
58GH4FC5G2TDmLWpUKVIdMuoX6BPyN4DS+EeI44fWtKEAWBVaCNAiLdqBQObrXiW
V8qRfGNefIIu/Dc2y33aNfKGYDyFpcdcQBqdOXFe4KWgH1ZuJq/J+7Ooy7v7YuYe
fDAuT9AQTJw0pAsira41pmPkzlwJBEmd3Abu4hkgVOBeY93Bo5+9tMB/93QL3flq
IGElANrEzaTv8YfSU8DCsXvdKara
=90j2
-----END PGP MESSAGE-----

My Fingerprint (This is the one I am using for the forum):
Code:
81DAEE690159E01E28FF951086FEA0B65C6E1B2C

Now, we will see how to decrypt this message.

1. Select the entire message > Copy (Ctrl + C)

2. Open System Tray > Right Click on Kleopatra icon > Mouse hover on Clipboard > Click Decrypt/Verify...
Loading... Loading...

3. Enter passphrase (1) > Click OK (2)

Loading... Loading...

4. Click Finish

Loading... Loading...

5. Open Notepad > Paste (Ctrl + V)
Code:
Hello m-day-online-r,
I am sending you this encrypted message.

Thank you.
This was the raw message which was encrypted before.

Some Real Life PGP Public Keys
Go to top

Some of the example PGP Public Keys you might be interested to explore or have it imported.

Name                      Knows as                                       Key file or Fingerprint   Ref
satoshiFounder and Bitcoin Creator   File   Source
theymosAdministrator of BitcoinTalk   File   Source
gmaxwellBitcoin Core Developer   File   Source

Exercises - Home Work
Go to top

Welcome to the exercises section. Before we start, here is what you wanna do.
1. Create a New Key Pair with the following information

Code:
         Name: ex-<your bitcoinTalk username>
          Email: <yourBitcoinTalkUsername@BitcoinTalk.com>
i.e:
Code:
         Name: ex-mdayonliner
          Email: <mdayonliner@BitcoinTalk.com>
We don't actually want to use our real name and email address for these exercises. The username part with the prefix ex- will help me and others to identify that we are communicating with you.

2. Have your Fingerprint published on the online server. It's gonna help me and other members to access your public key for encrypted communication.

We will have two assignments to practice. I will think of an award later for the successful participants.

Assignment 1: PGP Singed Message and Signature - Coming soon.
Assignment 2: Encrypt and Decrypt Message - Coming soon.


Click here for my Fingerprint on the server.
Code:
81DAEE690159E01E28FF951086FEA0B65C6E1B2C



electrobit: Could someone explain what is the purpose or advantages about to create or make a PGP?
Answer

Please feel free to ask any question in the comment. I will add them in here with the answer. If I do not have the answer then I will try to seek senior members' help or I will find an answer for your question. Make sure the question is related to the topic.



Acknowledgements
Go to top

Husna QA: The topic PGP/GPG Signed Message - Public Key in his/her local language was the starter for me to start my learning. I am happy that I was good enough to understand the translation in English.
TryNinja: Provided some URLs which cleared my head to understand better.
hugeblack: Suggested the idea of adding some example PGP Public Keys.
All the members who were leaving their PGP PUBLIC KEYs all around the forum. Seeing these encrypted codes were interesting for me and finally I decided to investigate what was it all about.




References
Go to top

https://en.wikipedia.org/wiki/Pretty_Good_Privacy
http://www.pitt.edu/~poole/PGP.htm





This tutorial will be continued with further materials in future
Looking forward to your expertise review and feedback


       █
      ██
     ██
   ██ ██
 █ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
   
       █
      ██
     ██
   ██ ██
 █ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
  B

          ▄▄▄▄▄▄
     ▄▄████████████▄▄
   ▄█████▀▀    ▀▀█████▄
  ████▀            ▀████
 ████                ████
▐███                  ███▌
███▌                  ▐███
▐███           ▄▄     ███▌
 ████         ▀███▄  ▐███
  ████▄         ▀███▄███
   ▀█████▄▄     ▄█████▀
     ▀▀████████████▀▀
          ▀▀▀▀▀▀
T 
Better. Quick.

Transparent.






             ▄████▄▄   ▄
█▄          ██████████▀▄
███        ███████████▀
▐████▄     ██████████▌
▄▄██████▄▄▄▄█████████▌
▀████████████████████
  ▀█████████████████
  ▄▄███████████████
   ▀█████████████▀
    ▄▄█████████▀
▀▀██████████▀
    ▀▀▀▀▀






▄█████████████████████████▄
███████████████████████████
███████████████▀       ████
██████████████      ▄▄▄████
██████████████    ▐████████
██████████████    ▐████████
██████████            ▐████
██████████            █████
██████████████    ▐████████
██████████████    ▐████████
██████████████    ▐████████
▀█████████████    ▐███████▀






                   ▄▄████
              ▄▄████████▌
         ▄▄█████████▀███
    ▄▄██████████▀▀ ▄███▌
▄████████████▀▀  ▄█████
▀▀▀███████▀   ▄███████▌
      ██    ▄█████████
       █  ▄██████████▌
       █  ███████████
       █ ██▀ ▀██████▌
       ██▀     ▀████
                 ▀█▌
1537744655
Hero Member
*
Offline Offline

Posts: 1537744655

View Profile Personal Message (Offline)

Ignore
1537744655
Reply with quote  #2

1537744655
Report to moderator
Make a difference with your Ether.
Donate Ether for the greater good.
SPRING.WETRUST.IO
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537744655
Hero Member
*
Offline Offline

Posts: 1537744655

View Profile Personal Message (Offline)

Ignore
1537744655
Reply with quote  #2

1537744655
Report to moderator
1537744655
Hero Member
*
Offline Offline

Posts: 1537744655

View Profile Personal Message (Offline)

Ignore
1537744655
Reply with quote  #2

1537744655
Report to moderator
1537744655
Hero Member
*
Offline Offline

Posts: 1537744655

View Profile Personal Message (Offline)

Ignore
1537744655
Reply with quote  #2

1537744655
Report to moderator
mdayonliner
Sr. Member
****
Offline Offline

Activity: 294
Merit: 274


Over 13BTC http://bit.ly/BTCLoan


View Profile
May 21, 2018, 01:56:51 AM
 #2

Code:
Tuesday, May 21, 2018 @20:56 GMT: Added some example PGP Public Keys


       █
      ██
     ██
   ██ ██
 █ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
   
       █
      ██
     ██
   ██ ██
 █ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
  B

          ▄▄▄▄▄▄
     ▄▄████████████▄▄
   ▄█████▀▀    ▀▀█████▄
  ████▀            ▀████
 ████                ████
▐███                  ███▌
███▌                  ▐███
▐███           ▄▄     ███▌
 ████         ▀███▄  ▐███
  ████▄         ▀███▄███
   ▀█████▄▄     ▄█████▀
     ▀▀████████████▀▀
          ▀▀▀▀▀▀
T 
Better. Quick.

Transparent.






             ▄████▄▄   ▄
█▄          ██████████▀▄
███        ███████████▀
▐████▄     ██████████▌
▄▄██████▄▄▄▄█████████▌
▀████████████████████
  ▀█████████████████
  ▄▄███████████████
   ▀█████████████▀
    ▄▄█████████▀
▀▀██████████▀
    ▀▀▀▀▀






▄█████████████████████████▄
███████████████████████████
███████████████▀       ████
██████████████      ▄▄▄████
██████████████    ▐████████
██████████████    ▐████████
██████████            ▐████
██████████            █████
██████████████    ▐████████
██████████████    ▐████████
██████████████    ▐████████
▀█████████████    ▐███████▀






                   ▄▄████
              ▄▄████████▌
         ▄▄█████████▀███
    ▄▄██████████▀▀ ▄███▌
▄████████████▀▀  ▄█████
▀▀▀███████▀   ▄███████▌
      ██    ▄█████████
       █  ▄██████████▌
       █  ███████████
       █ ██▀ ▀██████▌
       ██▀     ▀████
                 ▀█▌
mdayonliner
Sr. Member
****
Offline Offline

Activity: 294
Merit: 274


Over 13BTC http://bit.ly/BTCLoan


View Profile
May 21, 2018, 01:57:04 AM
 #3

reserved


       █
      ██
     ██
   ██ ██
 █ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
   
       █
      ██
     ██
   ██ ██
 █ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
  B

          ▄▄▄▄▄▄
     ▄▄████████████▄▄
   ▄█████▀▀    ▀▀█████▄
  ████▀            ▀████
 ████                ████
▐███                  ███▌
███▌                  ▐███
▐███           ▄▄     ███▌
 ████         ▀███▄  ▐███
  ████▄         ▀███▄███
   ▀█████▄▄     ▄█████▀
     ▀▀████████████▀▀
          ▀▀▀▀▀▀
T 
Better. Quick.

Transparent.






             ▄████▄▄   ▄
█▄          ██████████▀▄
███        ███████████▀
▐████▄     ██████████▌
▄▄██████▄▄▄▄█████████▌
▀████████████████████
  ▀█████████████████
  ▄▄███████████████
   ▀█████████████▀
    ▄▄█████████▀
▀▀██████████▀
    ▀▀▀▀▀






▄█████████████████████████▄
███████████████████████████
███████████████▀       ████
██████████████      ▄▄▄████
██████████████    ▐████████
██████████████    ▐████████
██████████            ▐████
██████████            █████
██████████████    ▐████████
██████████████    ▐████████
██████████████    ▐████████
▀█████████████    ▐███████▀






                   ▄▄████
              ▄▄████████▌
         ▄▄█████████▀███
    ▄▄██████████▀▀ ▄███▌
▄████████████▀▀  ▄█████
▀▀▀███████▀   ▄███████▌
      ██    ▄█████████
       █  ▄██████████▌
       █  ███████████
       █ ██▀ ▀██████▌
       ██▀     ▀████
                 ▀█▌
hugeblack
Sr. Member
****
Offline Offline

Activity: 448
Merit: 347


Avatar 4 rent / Sig Designer https://goo.gl/34QBYf


View Profile WWW
May 21, 2018, 02:55:48 AM
 #4

I had some problems with "Decrypt an Encrypted Message," but will try to follow your method "I just wake up."
  - Excellent explanation and attractive design.
You can add some important PGP Signatures [theymos, ThomasV, Bitcoin core,.....etc.]"I have created a short list here"----------->Some of PGP public keys [you should import]

try to add this site to your tutorial ------> https://keybase.io "I noticed many people using it"

mdayonliner
Sr. Member
****
Offline Offline

Activity: 294
Merit: 274


Over 13BTC http://bit.ly/BTCLoan


View Profile
May 21, 2018, 07:52:03 PM
 #5

I had some problems with "Decrypt an Encrypted Message," but will try to follow your method "I just wake up."
  - Excellent explanation and attractive design.
You can add some important PGP Signatures [theymos, ThomasV, Bitcoin core,.....etc.]"I have created a short list here"----------->Some of PGP public keys [you should import]

try to add this site to your tutorial ------> https://keybase.io "I noticed many people using it"

Hello hugeblack,

Will do mate. I am still working on this tutorial. After posting the topic I crushed last night. I just woke up now and noticed I became a Full Member. It's exciting and I am going to celebrate the happiness. I will add few more alternative ways for PGP using https://keybase.io and others soon.

Appreciate your feedback and thanks for the compliment. It took me long time to find a good banner for the top  Smiley


Update1
Added some example PGP Public Keys.


       █
      ██
     ██
   ██ ██
 █ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
   
       █
      ██
     ██
   ██ ██
 █ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
██ ██ ██
  B

          ▄▄▄▄▄▄
     ▄▄████████████▄▄
   ▄█████▀▀    ▀▀█████▄
  ████▀            ▀████
 ████                ████
▐███                  ███▌
███▌                  ▐███
▐███           ▄▄     ███▌
 ████         ▀███▄  ▐███
  ████▄         ▀███▄███
   ▀█████▄▄     ▄█████▀
     ▀▀████████████▀▀
          ▀▀▀▀▀▀
T 
Better. Quick.

Transparent.






             ▄████▄▄   ▄
█▄          ██████████▀▄
███        ███████████▀
▐████▄     ██████████▌
▄▄██████▄▄▄▄█████████▌
▀████████████████████
  ▀█████████████████
  ▄▄███████████████
   ▀█████████████▀
    ▄▄█████████▀
▀▀██████████▀
    ▀▀▀▀▀






▄█████████████████████████▄
███████████████████████████
███████████████▀       ████
██████████████      ▄▄▄████
██████████████    ▐████████
██████████████    ▐████████
██████████            ▐████
██████████            █████
██████████████    ▐████████
██████████████    ▐████████
██████████████    ▐████████
▀█████████████    ▐███████▀






                   ▄▄████
              ▄▄████████▌
         ▄▄█████████▀███
    ▄▄██████████▀▀ ▄███▌
▄████████████▀▀  ▄█████
▀▀▀███████▀   ▄███████▌
      ██    ▄█████████
       █  ▄██████████▌
       █  ███████████
       █ ██▀ ▀██████▌
       ██▀     ▀████
                 ▀█▌
Fondo Platform
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile
May 25, 2018, 02:26:06 AM
 #6

I recommend use ecdsa or ed25519 rather than rsa.

Code:
gpg2 --expert --gen-key

Code:
gpg (GnuPG) 2.1.8; Copyright (C) 2015 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Please select what kind of key you want:
   (1) RSA and RSA (default)
   (2) DSA and Elgamal
   (3) DSA (sign only)
   (4) RSA (sign only)
   (7) DSA (set your own capabilities)
   (8) RSA (set your own capabilities)
   (9) ECC and ECC
  (10) ECC (sign only)
  (11) ECC (set your own capabilities)

ECC: Elliptic-curve cryptography
electrobit
Member
**
Online Online

Activity: 140
Merit: 47

Life depends more on attitude than aptitude.


View Profile WWW
May 26, 2018, 10:12:36 PM
 #7

Could someone explain what is the purpose or advantages about to create or make a PGP?

The Bloqqe Foundation
Businesses Age based-on Blockchain Technology.
TryNinja
Hero Member
*****
Offline Offline

Activity: 770
Merit: 760


ChipMixer's Badge of Honor


View Profile
May 26, 2018, 11:06:50 PM
 #8

Could someone explain what is the purpose or advantages about to create or make a PGP?
Mostly privacy. You don't want the NSA reading your emails, do you?

Quote
PGP is useful for two things: 1. Privacy and Security, and 2. Authenticity. By privacy, I mean that you can prevent people from seeing things. For example, you can encrypt an email to someone, or encrypt a file with a list of passwords. By Authenticity, I mean that you can ensure a message was sent/written by the person you think it was, and that it wasn't modified by a third party. Of course, these two can be combined. I'll discuss these further.
Source: https://www.phildev.net/pgp/gpgwhy.html

electrobit
Member
**
Online Online

Activity: 140
Merit: 47

Life depends more on attitude than aptitude.


View Profile WWW
May 27, 2018, 04:47:39 PM
Merited by Xester (1)
 #9

Could someone explain what is the purpose or advantages about to create or make a PGP?
Mostly privacy. You don't want the NSA reading your emails, do you?

Quote
PGP is useful for two things: 1. Privacy and Security, and 2. Authenticity. By privacy, I mean that you can prevent people from seeing things. For example, you can encrypt an email to someone, or encrypt a file with a list of passwords. By Authenticity, I mean that you can ensure a message was sent/written by the person you think it was, and that it wasn't modified by a third party. Of course, these two can be combined. I'll discuss these further.
Source: https://www.phildev.net/pgp/gpgwhy.html
Got it!

The Bloqqe Foundation
Businesses Age based-on Blockchain Technology.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!