How Public and Private Encryption Key Works???

seventrad

New member
Local time
5:40 PM
Messages
50
[SOLVED] How Public and Private Encryption Key Works???

Hi guys,

I need to understand how PGP or GPG keys works!

1º) I need to send a email encrypted for a person. I have to send to her my public key and my secret password?

2º) I encrypts and signs my message with my private key and my password?

3º) My password is needed only to encrypted and sign? Or her is needed to decrypt too?

I read many tutorials about GPG and PGP but I don't understand how works the private and public encryption key.
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Ultimate x64 SP1
OS
Windows 7 Ultimate x64 SP1
This is what you do. You want to send an encrypted message to someone. They send you their PUBLIC key. You encrypt the message with their PUBLIC key. When the person gets the message they decrypt it with there PRIVATE key. Alright? It works like this if you encrypt with the PUBLIC key only the PRIVATE key can decrypt it. If you encrypt with a PRIVATE key only the PUBLIC key and decrypt it. The latter form is (PRIVATE -> PUBLIC) is used for digital signatures.

Never send your password to anything anywhere to anyone. The only thing you should ever send is your PUBLIC key.


Step one, encrypt your message with your PRIVATE key, you will send your PUBLIC key to the person.
Step two, encrypt the message again using the person's PUBLIC key.
Step three, send the message.

More or less I've not used GPG/PGP much.
 

My Computer My Computer

At a glance

Windows 10 Pro (x64)Intel Core i7-3930K (3.2GHz - 4.5GHz)4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)Nvidia Geforce GTX 690
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Ok! Now the things are more clear for me.

Thank you!
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64 SP1
OS
Windows 7 Ultimate x64 SP1
Step one, encrypt your message with your PRIVATE key, you will send your PUBLIC key to the person.
Step two, encrypt the message again using the person's PUBLIC key.
Step three, send the message.

More or less I've not used GPG/PGP much.


Why Step one?
You only use your private key for decryption and signing.
So if you are sending an encrypted mail you encrypt the mail with the recipient's public key (and usual also with your own public key, so you can decrypt you own mail).

The process here sounds complicated, but normally this is done within you mail client automatically. Just google for Enigmail http://enigmail.mozdev.org (Thunderbird) or gpg4o http://www.gpg4o.de (Outlook).
These plugins do all the magic automatically.


Mark
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
Why Step one?
For signing. You sign your message with your private key before encrypting with the recipient's public key. You also replied to a very old thread...
 

My Computer My Computer

At a glance

Windows 10 Pro (x64)Intel Core i7-3930K (3.2GHz - 4.5GHz)4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)Nvidia Geforce GTX 690
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Back
Top