A cryptographic algorithm or cipher is one that takes cleartext and converts it into ciphertext through some calculations. These algorithms can be broadly classified in two different ways as follows:
- By their use of public and private keys or shared secrets, they can be either asymmetric or symmetric
- By how they process the original message, they can be either stream or block ciphers