> For the complete documentation index, see [llms.txt](https://davidjosearaujo.gitbook.io/online-courses/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://davidjosearaujo.gitbook.io/online-courses/blockchain-security/fundamentals-of-blockchain-security/what-is-public-key-cryptography.md).

# What is public-key cryptography?

Public-key or "asymmetric" cryptography uses two different encryption keys

* A private key that is a random number
* A public key derived from the private key

The use of two keys in private-key cryptography means that it has numerous uses

* Encryption
* Authentication
* Integrity protection

Blockchain uses public-key cryptography for several purposes
