The plaintext is used as input to an encryption algorithm ; the output is termed ciphertext . Plaintext is used as input to an encryption algorithm ; the output is usually termed ciphertext particularly when the algorithm is a cipher .