Bitcoin Forum
May 28, 2024, 01:56:13 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3]  All
  Print  
Author Topic: PGP Questions [From hex to pem]  (Read 513 times)
NotATether
Legendary
*
Offline Offline

Activity: 1610
Merit: 6813


bitcoincleanup.com / bitmixlist.org


View Profile WWW
November 28, 2020, 09:04:31 PM
 #41

As for the idea, do you think it would be useful?

For practical use? No because the normal way of generating private keys by hardware-provided entropy is much more secure than choosing the numbers yourself.

For demonstration purposes? Yes, as people here will finally get an idea of what's inside an RSA private key and how all the pieces fit together.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
BlackHatCoiner (OP)
Legendary
*
Offline Offline

Activity: 1526
Merit: 7451


Farewell, Leo


View Profile
November 28, 2020, 09:09:00 PM
 #42

For practical use? No because the normal way of generating private keys by hardware-provided entropy is much more secure than choosing the numbers yourself.
When you say numbers you mean the prime numbers or the hex? Because both of them can be chosen randomly and not from the user.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
NotATether
Legendary
*
Offline Offline

Activity: 1610
Merit: 6813


bitcoincleanup.com / bitmixlist.org


View Profile WWW
November 28, 2020, 09:12:14 PM
 #43

For practical use? No because the normal way of generating private keys by hardware-provided entropy is much more secure than choosing the numbers yourself.
When you say numbers you mean the prime numbers or the hex? Because both of them can be chosen randomly and not from the user.

I was referring to these primes:

Code:
modulus=INTEGER:<PRIME>
pubExp=INTEGER:<PRIME>
privExp=INTEGER:<PRIME>
p=INTEGER:<PRIME>
q=INTEGER:<PRIME>

As for the hex, as long as you generate it properly, I don't see how that can be insecure.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
BlackHatCoiner (OP)
Legendary
*
Offline Offline

Activity: 1526
Merit: 7451


Farewell, Leo


View Profile
January 01, 2021, 02:06:06 PM
 #44

As I said, I never succeeded on what I firstly wanted on OP. What I did want, was to keep my PGP keys safe with a mnemonic. Although, I then sat down and questioned "Why should we carry that large base64 encoded string anyway? Why shouldn't we just encrypt and decrypt with mnemonics?".

So this is when I started this: [Open Source] Booknemonic - Convenience on digital signatures and encryption.

Why am I waking up this topic? I want to know from the people that helped me here, if it's the same thing. By that, I mean, is this way better than PGP? Am I missing something? Because it seems too simple to me, but by far better than the monstrous public key, PGP generates, such as this one:

Code:
-----BEGIN PGP PUBLIC KEY BLOCK-----

mDMEWNCx5RYJKwYBBAHaRw8BAQdAbYq4lHj3xqG+Lu5/y/YuPNBGtvFlHolTGdys
1JWnWAu0Gk51bGxpdXMgPG51bGxpdXNAbnltLnpvbmU+iJEEExYKADkCGwEDCwkN
BRUKCQgLBRYCAwEAAh4BAheAFiEEwukc10pMV6EF9sIbWgBZGy8wfgwFAljbU+IC
GQEACgkQWgBZGy8wfgwJswD9GX9sAFccqAcarTv03qJFc6RCTmeE6oh3pdH0IuzI
paUBAJ3MSUInQr1f6Ds97GS02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PGP PUBLIC KEY BLOCK-----
(randomly taken from the forum)

I wanted to make encryption easier to be achieved from an ordinary human. I hope I did it.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
NotATether
Legendary
*
Offline Offline

Activity: 1610
Merit: 6813


bitcoincleanup.com / bitmixlist.org


View Profile WWW
January 01, 2021, 02:46:10 PM
 #45

I wanted to make encryption easier to be achieved from an ordinary human. I hope I did it.

I haven't read the source code of your utility but from your description in the OP you did a good job at achieving what you set out to do. I can see this could have a good use case in reducing impersonation-of-people's-PGP-keys kind of scams where you give anybody a random signed message and they trust the fact that there is a signed message existing proves it's them while it could be from a different public key. Words that people can memorize would make these scam attempts more obvious.

Also you can use Mono to port your .NET program to macOS and Linux without changing the programming language.

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
Pages: « 1 2 [3]  All
  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!