In cryptography, an algorithm for performing encryption or decryption—a series of well-defined steps that can be followed as a procedure.