An object is to enhance the difficulty in decrypting ciphertext. In order
to do input into an encryption algorithm that receives plaintext to
output ciphertext, a particular plaintext detector for detecting that the
plaintext satisfying a predetermined condition is inputted, the
particular plaintext detector includes: a receiving part for receiving
the plaintext; a counter part for separating a predetermined part from a
bit string forming the plaintext into a fixed part and a remaining part
into a variable part, counting the inputted plaintext having a value of
the fixed part included in a set of values of the fixed parts at every
set of the values of the fixed parts formed of 1 or a plurality of the
values of the fixed parts, and storing it as a separate count; and a
detecting part for outputting a detection signal when at least one of the
separate counts exceeds a predetermined number. The particular plaintext
detector is used to receive a detection signal for proper action, which
allows the increased difficulty of decryption.