What is public-key cryptography?

Public key cryptography, also known as asymmetric cryptography, is a cryptographic system that utilizes a pair of mathematically related keys: a public key and a private key. It is a fundamental component of modern encryption and digital security.

In public key cryptography, each user or entity has a unique key pair consisting of a public key and a private key. The public key is freely distributed and accessible to anyone, while the private key is kept confidential and known only to the owner. The keys are mathematically linked in a way that data encrypted with one key can only be decrypted with the corresponding key from the pair.

Here's how public key cryptography works:

  1. Encryption: If User A wants to send an encrypted message to User B, User B's public key is used to encrypt the message. User A can obtain User B's public key from a publicly available directory or directly from User B.
  2. Transmission: The encrypted message is transmitted over an insecure channel, such as the internet, where it may be intercepted by potential eavesdroppers.
  3. Decryption: User B, the intended recipient, uses their private key to decrypt the message. Since the private key is known only to User B, the message remains secure even if intercepted during transmission.

Public key cryptography offers several advantages:

Secure Communication

Public key cryptography allows secure communication between parties without the need to exchange encryption keys in advance. Users can freely distribute their public keys, ensuring confidentiality and integrity in their communications.


Public key cryptography enables the verification of digital signatures. By encrypting a message with their private key, a user can create a digital signature that can be decrypted and verified using the corresponding public key. This ensures the authenticity and integrity of the message.

Key Exchange

Public key cryptography provides a secure method for exchanging symmetric encryption keys. By encrypting the symmetric key with the recipient's public key, users can securely share the key without the risk of interception.

Public key cryptography is widely used in various applications, including secure communication protocols (e.g., Transport Layer Security (TLS)), digital signatures, secure email, virtual private networks (VPNs), and secure online transactions. It provides a foundation for secure and private communication in the digital world.

Start with crypto today

Sign up on NBX, a trusted Norwegian cryptocurrency exchange and custodian, and kickstart your crypto journey safely.
Crypto 101
Explore the most popular crypto terms and find answers to your questions.

What is Chainlink?


What is Shiba Inu?


What is an IEO?


What is FOMO?


What is an option and why should I care?


What is spot trading?


Are banks Bitcoin-friendly?


What is NFT?


Can Bitcoin go to zero?


Insights, Trends, Analysis

Unraveling the cryptocurrency industry revolution.

Ethereum finally breaks 3800$ as it overtakes Mastercard in valuation

Ethereum finally broke the 3800$ level and overtook Mastercards market cap en route to doing so. Learn more here.
2 minutes

AI tokens surge as NVIDIA announces record quarterly earnings

AI-related tokens surged shortly after NVIDIA posted their earnings for the fourth quarter. Learn more here.
2 minutes

What happened with Ethereum - week 1 in review: Ethereum (ETH)

Many decided to buy Ethereum during the first week of the year. Learn why here.
2 minutes
Cookie Consent

By clicking “Accept”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. View our Privacy Policy for more information.