摘要 |
<p>PROBLEM TO BE SOLVED: To obtain an encryption device and an encryption program which generate cipher data which is capable of ensuring the cipher strength for practical use and allows partial match search.SOLUTION: A block data generation unit 62 sequentially selects characters one by one from an encryption object character string (a1), extracts character strings having a plurality of prescribed character lengths, which are continuous to selected characters, from the encryption object character string as block character strings (a2), and generates block data having an encryption block length from data of the extracted block character strings (a3). The encryption block length is a prescribed data length equal to or longer than a maximum data length of block character strings. An encryption processing unit 63 encrypts the block data by a block encryption system. A cipher data generation unit 64 combines encrypted block data corresponding to the plurality of block character strings obtained from the encryption object character string to generate cipher data for the encryption object character string.</p> |