Bitcoin Forum
December 15, 2024, 10:18:43 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Simplest way to generate a PGP key???  (Read 239 times)
Sutters Mill (OP)
Hero Member
*****
Offline Offline

Activity: 976
Merit: 575


Cryptophile at large


View Profile
September 28, 2020, 03:56:57 PM
 #1

Hey everyone. Not sure if this is the right section but I've been asked to encrypt a message and I'm having difficulties generating my key. I'm trying to do it on ubuntu and am following this youtube guide: https://www.youtube.com/watch?v=ww1oMgB4Lnk

But I can't seem to figure out how to generate a key as when I get to the part where it should generate after clicking ok nothing happens. In the video his system is called 'passwords and encryption keys' whereas mine is just 'passwords and keys'. Not sure if his is an older system or not. Can anyone explain how to do it or is there an simple idiot proof way to do so??? I can use a windows computer to try it but would prefer to keep it to ubuntu if possible. Thanks.
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
September 28, 2020, 04:05:22 PM
 #2

If its the password generation screen how long was the password and did they definitely match?

There might be something that means it has to be between eg 8-20 characters for example
Sutters Mill (OP)
Hero Member
*****
Offline Offline

Activity: 976
Merit: 575


Cryptophile at large


View Profile
September 28, 2020, 04:31:25 PM
 #3

They matched as it will only let your proceed of they do. I only used a 4 pass character initially just to test it. I just tried a 10 character one and it was the same.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
September 28, 2020, 10:36:25 PM
Last edit: November 15, 2023, 12:50:24 AM by HCP
Merited by Sutters Mill (1)
 #4

I just tried this on Ubuntu 18.04... At first, nothing seemed to happen after entering the password, but then after a second or two, I see this:



It's possible that you are missing some libraries that are required for generating the GPG key... it might pay to try creating it on the command line, so you can see any errors generated... open a terminal window and type:
Code:
gpg --gen-key

Then follow the instructions... note that it might take quite a while (as in minutes) once it says:
Quote
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.


But eventually you should see something like:
Code:
gpg: key D13FDC40CA81AD27 marked as ultimately trusted
gpg: revocation certificate stored as '/home/hcp/.gnupg/openpgp-revocs.d/9D90F94ED322D4FC62C285AFD13FDC40CA81AD27.rev'
public and secret key created and signed.

pub   rsa3072 2020-09-28 [SC] [expires: 2022-09-28]
      9D90F94ED322D4FC62C285AFD13FDC40CA81AD27
uid                      Command Line Test <bob@builder.com>
sub   rsa3072 2020-09-28 [E] [expires: 2022-09-28]


And the key should be automatically added to the list in the "Passwords and Keys" application as well:


█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
BitMaxz
Legendary
*
Online Online

Activity: 3472
Merit: 3204


Playbet.io - Crypto Casino and Sportsbook


View Profile WWW
September 28, 2020, 11:27:36 PM
 #5

Can you try this video below?

- How to Generate a New PGP/GPG Key from Scratch

Since the youtube video that you trying to follow was posted 2011 and maybe it won't work anymore try this video below.

- How To Use GPG Private Public Keys To Encrypt And Encrypt Files On Ubuntu Linux

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

.... ..Playbet.io..Casino & Sportsbook.....Grab up to  BTC + 800 Free Spins........
████████████████████████████████████████
██████████████████████████████████████████████
██████▄▄████████████████████████████████████████
██████▐████▄▄█████████████████████████████████████
██████▐██▀▀▀██▄▄██████████████████████████████████
████████▌█████▀██▄▄█████▄███▄███▄███▄█████████████
██████████████████▌████▀░░██▌██▄▄▄██████████████
█████████████▀▄██▀▀█████▄░░██▌██▄░░▄▄████▄███████
██████▐██▄▄█▌██████████▀███▀███▀███▀███▀█████████
██████▐████▀██████████████████████████████████████
██████▀▀████████████████████████████████████████
██████████████████████████████████████████████
████████████████████████████████████████
Sutters Mill (OP)
Hero Member
*****
Offline Offline

Activity: 976
Merit: 575


Cryptophile at large


View Profile
September 29, 2020, 08:50:25 AM
 #6

I just tried this on Ubuntu 18.04... At first, nothing seemed to happen after entering the password, but then after a second or two, I see this:



It's possible that you are missing some libraries that are required for generating the GPG key... it might pay to try creating it on the command line, so you can see any errors generated... open a terminal window and type:
Code:
gpg --gen-key

Then follow the instructions... note that it might take quite a while (as in minutes) once it says:
Quote
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.




I tried that but all I got was the "We need to generate a lot of random bytes" and then nothing :


And the key should be automatically added to the list in the "Passwords and Keys" application as well:


I did manage to get this far before but then how do I use those to encrypt/decrypt messages as there doesn't seem to be any way to do this??? Thanks.
mocacinno
Legendary
*
Offline Offline

Activity: 3612
Merit: 5279


https://merel.mobi => buy facemasks with BTC/LTC


View Profile WWW
September 29, 2020, 09:02:32 AM
 #7

Well, maybe it's due to the fact i haven't used any desktop environment in a while, but i think using a gui overcomplicates things quite a bit.

The simpelest way would be
  • open a terminal
  • gpg --gen-key
  • leave default settings, enter name + email
  • chose a password


done

No need for all those gui clicks'n'misses... Just open a terminal, enter one command, follow the wizard and you're done...

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
September 30, 2020, 06:04:08 AM
 #8

I did manage to get this far before but then how do I use those to encrypt/decrypt messages as there doesn't seem to be any way to do this??? Thanks.
... I've been asked to encrypt a message and I'm having difficulties generating my key.

What exactly has the other party requested that you do with regards to "encrypting a message"? Huh Are they wanting to communicate using PGP encrypted emails or IMs or something? Or have they asked that you "sign a message" using a Bitcoin address? Huh

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Sutters Mill (OP)
Hero Member
*****
Offline Offline

Activity: 976
Merit: 575


Cryptophile at large


View Profile
October 05, 2020, 08:07:12 AM
 #9

Well, maybe it's due to the fact i haven't used any desktop environment in a while, but i think using a gui overcomplicates things quite a bit.

The simpelest way would be
  • open a terminal
  • gpg --gen-key
  • leave default settings, enter name + email
  • chose a password


done

No need for all those gui clicks'n'misses... Just open a terminal, enter one command, follow the wizard and you're done...
I already tried that. See above. I managed to generate a personal PGP key but I don't know where to go from there.

I did manage to get this far before but then how do I use those to encrypt/decrypt messages as there doesn't seem to be any way to do this??? Thanks.
... I've been asked to encrypt a message and I'm having difficulties generating my key.

What exactly has the other party requested that you do with regards to "encrypting a message"? Huh Are they wanting to communicate using PGP encrypted emails or IMs or something? Or have they asked that you "sign a message" using a Bitcoin address? Huh

I can sign a message from a bitcoin address. I'm looking to try figure out how to encrypt and decrypt messages for communication.
HCP
Legendary
*
Offline Offline

Activity: 2086
Merit: 4363

<insert witty quote here>


View Profile
October 05, 2020, 09:22:43 AM
 #10

I can sign a message from a bitcoin address. I'm looking to try figure out how to encrypt and decrypt messages for communication.
At this point, you're kinda outside the realm of Bitcoin and cryptocurrency and more into cryptography in general... Have a read of this guide and see if it helps with regards to sending/receiving encrypted emails: https://vitux.com/how-to-use-email-encryption-in-ubuntu/

This one is more generic and is for encrypting/decrypting files: https://www.linode.com/docs/security/encryption/gpg-keys-to-send-encrypted-messages/

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
Husna QA
Legendary
*
Offline Offline

Activity: 2492
Merit: 3052


Payment Gateway Allows Recurring Payments


View Profile WWW
October 05, 2020, 09:45:52 AM
 #11

I already tried that. See above. I managed to generate a personal PGP key but I don't know where to go from there. -snip-
For other people to communicate with you using PGP (encrypted message), you must either provide the public key (not the secret key / private key) either directly to the target person or upload it to the Key Server.

There are many Key Servers that you can use to upload a public key, for example:
https://pgp.mit.edu/; http://keyserver.ubuntu.com/ etc.

Open a terminal and type the following command (I made an example using pgp.mit.edu):
Code:
gpg --send-keys --keyserver pgp.mit.edu [key ID]

Replace [key ID] with the key ID of the PGP Key Pair that you have.
To find out the Key ID, type the following command in the terminal:
Code:
gpg --list-key

The character above your email name is what is called the key ID.

Here's an example of my public key:
https://pgp.mit.edu/pks/lookup?search=0x58BC997445D96F68DB65C169A2CA884F183D22E9&op=index
http://keyserver.ubuntu.com/pks/lookup?search=0x58BC997445D96F68DB65C169A2CA884F183D22E9&fingerprint=on&op=index

..cryptomus..   
  
.
lllllllllllllllllll CRYPTO
PAYMENT GATEWAY
▄█▀▀██▄░░░▄█████▄░░░▄▀████▄
██░▀▄██░░░██▄░▄██░░░██▄▀▀▀█
██░▀▄██░░░███▄███░░░███░░▄█
▀▀▀▀▀░░░░░▀▀▀▀▀░░░░░▀▀▀▀▀
▄▄▄▄▄░░░░░▄▄▄▄▄░░░░░▄▄▄▄▄
███▀▄██░░░██▀░▀██░░░██▀▀▀▀█
██▀▄███░░░██░░░██░░░█▄███░█
▀█▄▄▄█▀░░░▀██▄██▀░░░▀█▄▄▄█▀

▄█████▄░░░▄█▀▀██▄░░░▄█████▄
█▀░█░▀█░░░█░▀░▀▀█░░░██▄░▄██
█▄█▄█▄█░░░███░▀▄█░░░███▄███
▀▀▀▀▀░░░░░▀▀▀▀▀░░░░░▀▀▀▀▀
ACCEPT
CRYPTO
PAYMENTS
..GET STARTED..
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!