# 🔑: Public Key, 🗝 Private Key

##### Public-key cryptography, or asymmetric cryptography,

<span style="color: rgb(0, 0, 0);">An unpredictable (typically large and </span>[<span style="color: rgb(0, 0, 0);">random</span>](https://en.wikipedia.org/wiki/Random "Random")<span style="color: rgb(0, 0, 0);">) number is used to begin generation of an acceptable pair of </span>[<span style="color: rgb(0, 0, 0);">keys</span>](https://en.wikipedia.org/wiki/Cryptographic_key "Cryptographic key")<span style="color: rgb(0, 0, 0);"> suitable for use by an asymmetric key algorithm.</span>

##### Free Form Programmable Keys

<span style="color: rgb(0, 0, 0);">🔑: Public Key</span>

<span style="color: rgb(0, 0, 0);"> 🗝 Private Key</span>

![image.png](https://wiki.compclassnotes.com/uploads/images/gallery/2026-08/scaled-1680-/DdMimage.png)

<span style="color: rgb(0, 0, 0);">In this example the message is </span>[<span style="color: rgb(0, 0, 0);">digitally signed</span>](https://en.wikipedia.org/wiki/Digital_signature "Digital signature")<span style="color: rgb(0, 0, 0);"> with Alice's private key, but the message itself is not encrypted. 1) Alice signs a message with her private key. 2) Using Alice's public key, Bob can verify that Alice sent the message and that the message has not been modified.</span>

![image.png](https://wiki.compclassnotes.com/uploads/images/gallery/2026-08/scaled-1680-/jyOimage.png)

\[1\] [https://en.wikipedia.org/wiki/Public-key\_cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography)