A cipher is an algorithm employed to encrypt or decrypt information.