Definition

A secret key is a confidential parameter used to encrypt and decrypt data in cryptographic processes. It could be a phrase, password, or random sequence of bits. The longer and more random a key is, the harder it is to crack with brute force or dictionary attack.

How Does a Secret Key Work in Asymmetric Encryption?

Here’s how secret keys are used in asymmetric cryptography:

How Does a Secret Key Work in Symmetric Encryption?

Here’s how symmetric encryption uses secret keys: