Privacy masking method using format-preserving encryption in image security system and recording medium for performing same
View Patent ↗The present invention discloses a privacy masking method using format-preserving encryption in an image security system, and a recording medium for performing the method. In a privacy masking method using format-preserving encryption in an image security system according to an aspect of the present invention, an image corresponding to a privacy region is encrypted using format-preserving encryption, so that it is possible to prevent waste of additional storage space required for encryption and to solve a problem of exposure of personal information.
1. A privacy masking method using format-preserving encryption in an image security system, the method comprising:
receiving, from an image surveillance system, an image obtained at at least one place;
identifying whether information related to privacy is present within the received image;
extracting, when the information related to privacy is present as a result of the identification, a privacy region from the received image;
calculating an image size of an image;
calculating a region size of the extracted privacy region;
generating a first block having a first size corresponding to an integer number of a results of dividing the image size by the region size, wherein the first size is a fixed size;
generating a second block having a second size corresponding to a result of subtracting the first size from the region size, wherein the second size is a variable size;
generating ciphertext in such a manner as to be equal to the region size, by using format-preserving encryption according to a sum of the first size and the second size, and generating a privacy masking image by using the generated ciphertext; and
inserting the encrypted privacy region image to the region related to privacy within the image received from the image surveillance system.
2. The privacy masking method of claim 1 , wherein the generating comprises:
generating an encrypted privacy region image by inserting the generated ciphertext to a position corresponding to the privacy region.
3. The privacy masking method of claim 2 , wherein in the format-preserving encryption, a length of the ciphertext is variably determined according to a size of the image that needs to be encrypted, and masking is performed on the privacy region.
4. The privacy masking method of claim 1 , wherein the information related to privacy is at least one among a person's face, a vehicle identification number, and an exposure-prohibited region.
5. A non-transitory computer-readable recording medium having a computer program recorded thereon, the recording medium for performing the privacy masking method using format-preserving encryption in an image security system according to claim 1 .