이하에서 도면을 참조하여 본 발명에 따르는 위변조 방지 기능이 구비된 문서와 유가증권의 생성 방법, 위변조 방지 기능이 구비된 문서와 유가증권의 위변조 확인 방법, 위조방지 수단이 구비된 문서의 생성 방법 및 위변조 확인 방법에 대하여 상세하게 설명한다.Hereinafter, with reference to the drawings, a document with a forgery and alteration prevention function according to the present invention, a method for generating a security, a document with a forgery and alteration prevention function and a method for checking forgery and alteration of a security, a method for generating a document with a forgery prevention means, and The forgery confirmation method will be described in detail.
도 5는 본 발명에 따르는 위변조 방지 기능이 구비된 문서의 생성 방법이 실행되는 문서 인쇄 시스템을 개략적으로 도시한 것이고, 도 6은 본 발명에 따르는 위변조 방지 기능이 구비된 문서를 도식적으로 도시한 것이며, 도 7은 인쇄된 문서에 구비된 문서 인쇄장치의 도트 마크의 예를 도시한 것이고, 도 8은 본 발명에 따르는 위변조 방지 기능이 구비된 문서의 생성 방법이 실행되는 과정을 설명하기 위하여 도시한 흐름도이며, 도 9는 본 발명에 따르는 위변조 방지 기능이 구비된 문서의 생성 방법을 설명하기 위하여 도시한 문서 작성에서부터 인쇄까지의 흐름도이고, 도 10은 본 발명에 따르는 위변조 방지 기능이 구비된 문서의 생성 방법이 실행되어 문서 작성 장치를 이루는 표시부에 디스플레이된 문서 정보 입력창을 도식적으로 도시한 것이며, 도 11은 본 발명에 따르는 위변조 방지 기능이 구비된 유가증권 생성 방법이 실행되는 유가증권 인쇄 시스템을 도식적으로 도시한 것이고, 도 12는 본 발명에 따르는 위변조 방지 기능이 구비된 유가증권 생성 방법이 실행되는 과정을 설명하기 위하여 도시한 흐름도이며, 도 13은 본 발명에 따르는 유가증권의 위변조 확인 방법이 실행되는 유가증권 확인 시스템을 도식적으로 도시한 것이고, 도 14는 본 발명에 따르는 유가증권의 위변조 확인 방법이 실행되는 과정을 설명하기 위하여 도시한 흐름도이며, 도 15는 도 14에서 변환 단계를 설명하기 위하여 도시한 흐름도이고, 도 16은 도 14에서 연산 단계를 설명하기 위하여 도시한 흐름도이며, 도 17은 인쇄된 유가증권에 구비된 유가증권 인쇄장치의 도트 마크의 예를 도시한 것이고, 도 18은 본 발명에 따르는 위조방지수단이 구비된 문서를 도식적으로 도시한 것이며, 도 19는 본 발명에 따르는 위조방지수단이 구비된 유가증권을 예시적으로 도시한 것이고, 도 20은 본 발명에 따르는 문서에 구비되는 위조방지수단을 도시한 것이며, 도 21은 도 20의 여백영역을 확대 도시한 것이고, 도 22는 본 발명에 따르는 위조방지수단이 구비된 문서에 인쇄되는 2차원 코드의 생성 과정을 설명하기 위하여 도시한 것이다.FIG. 5 schematically shows a document printing system in which a method for generating a document with forgery preventing function according to the present invention is executed, and FIG. 6 schematically shows a document with forgery preventing function according to the present invention. FIG. 7 illustrates an example of a dot mark of a document printing apparatus provided in a printed document, and FIG. 8 illustrates a process of generating a document with a forgery and alteration prevention function according to the present invention. 9 is a flow chart from document creation to printing to illustrate a method of generating a document with a forgery and alteration prevention function according to the present invention, and FIG. 10 is a flowchart of a document with a forgery and alteration prevention function according to the present invention. It is a diagram showing a document information input window displayed on a display unit constituting the document creating device is executed, 11 is a diagram schematically showing a security printing system in which a security forgery generation method with a forgery and alteration function according to the present invention is executed, and FIG. FIG. 13 is a flowchart illustrating a process, and FIG. 13 schematically illustrates a security confirmation system in which a forgery verification method of a security according to the present invention is executed, and FIG. 14 illustrates a method for verifying forgery and alteration of a security according to the present invention. FIG. 15 is a flowchart for explaining the conversion step in FIG. 14, FIG. 16 is a flowchart for explaining the calculation step in FIG. 14, and FIG. FIG. 18 shows an example of a dot mark of a security printing apparatus provided in the printed security, and FIG. 18 is according to the present invention. Figure schematically shows a document provided with anti-counterfeiting means, Figure 19 illustratively shows a securities with anti-counterfeiting means according to the present invention, Figure 20 is an anti-counterfeiting provided in the document according to the present invention Fig. 21 is an enlarged view of the margin area of Fig. 20, and Fig. 22 is a view for explaining a process of generating a two-dimensional code printed on a document with anti-counterfeiting means according to the present invention. .
도 5에 도시된 바와 같이, 위변조 방지 기능이 구비된 문서의 생성 방법이 실행되는 문서 인쇄 시스템(100)은 문서 인쇄장치 식별코드 정보, 해쉬 알고리즘, 코드 생성 기능을 가지는 문서 작성 장치(110)와, 상기 문서 작성 장치(110)에 연결되어 문서가 인쇄되는 문서 인쇄장치(130)로 이루어진다. 문서 작성 장치(110)의 예로 표시부(예, LCD), 입력부(예, 키보드, 마우스), 저장부, 제어부(마이컴)로 이루어진 PC를 들 수 있으며, 문서 인쇄장치(130)의 예로 프린터(잉크젯 프린터, 레이저 프린터)를 들 수 있다. 문서 작성 장치(110)에서 작성된 문서는 저장부에 저장되어 보관되며, 저장부 중 전원이 공급되지 않아도 저장된 문서가 저장된 상태로 유지되는 저장부는 문서 작성 장치에 일체로 구비된 저장수단과, 외부 저장수단으로 구현될 수 있다. 표시부에 디스플레이된 문서는 사용자의 인쇄 명령에 의하여 정보가 문서 인쇄장치(130)로 전달되어 인쇄된다.As shown in FIG. 5, thedocument printing system 100 in which a method of generating a document with a forgery and alteration prevention function is executed includes adocument creating apparatus 110 having document printing apparatus identification code information, a hash algorithm, and a code generating function. And adocument printing apparatus 130 connected to thedocument creating apparatus 110 to print a document. An example of thedocument creating device 110 may include a PC including a display unit (eg, LCD), an input unit (eg, keyboard, and mouse), a storage unit, and a control unit (microcom). An example of thedocument printing apparatus 130 may include a printer (inkjet). Printer, laser printer). The document created by thedocument creating device 110 is stored and stored in the storage unit, and the storage unit which is stored in the stored state even if no power is supplied among the storage units, the storage means integrally provided in the document generating device, and external storage. It can be implemented by means. In the document displayed on the display unit, information is transmitted to thedocument printing apparatus 130 by the user's printing command and printed.
본 발명에 따르는 위변조 방지 기능이 구비된 문서의 생성 방법 실행되는 문서 인쇄 시스템(100)을 이루는 문서 인쇄장치(130)에서 인쇄된 문서에는, 문서 정보와 문서 출력장치 식별코드 정보가 암호키를 통하여 암호화되어 암호문이 생성되는 단계(ST-110, 암호문 생성 단계)와, 암호문으로부터 해쉬 알고리즘에 의하여 해쉬값이 생성되는 단계(ST-130, 해쉬값 생성 단계)와, 해쉬값으로부터 코드가 생성되는 단계(ST-150, 코드 생성 단계)에서 생성된 코드(210, 220)가 도 6에 도시된 바와 같이 문서 내용과 함께 문서(200)에 인쇄된다. 상기 코드(210, 220)는 바코드와 같은 1차원 코드와, QR코드와 같은 2차원 코드일 수 있다. 상기에서 암호문 생성 단계가 생략되고, 문서 정보와 문서 출력장치 식별코드 정보로부터 해쉬 알고리즘에 의하여 해쉬값이 생성되는 것도 가능하다.In the document printed by thedocument printing device 130 constituting thedocument printing system 100 to be executed, a document generating method with a forgery prevention function according to the present invention, document information and document output device identification code information are transmitted through an encryption key. Encrypting and generating a cipher text (ST-110, generating a cipher text), generating a hash value from the cipher text by a hash algorithm (ST-130, generating a hash value), and generating a code from thehash value Codes 210 and 220 generated at (ST-150, code generation step) are printed on thedocument 200 together with the document contents as shown in FIG. Thecodes 210 and 220 may be one-dimensional codes such as barcodes and two-dimensional codes such as QR codes. The cipher text generation step may be omitted, and a hash value may be generated by a hash algorithm from document information and document output device identification code information.
도 6에서, 도면부호 문서에 인쇄된 영역에서 201은 발급기관, 203은 수신, 205는 발급일자, 207은 문서에 기재된 내용, 202는 문서번호, 209는 발급기관의 인감이 인쇄된 영역을 도시한 것이다. 그리고 도면부호 210과 220은 문서에 문서 내용과 함께 인쇄된 위변조 방지 코드를 나타낸 것이다.In FIG. 6, 201 issuing authority, 203 is receiving date, 205 issuing date, 207 is content described in the document, 202 is document number, and 209 is an area where the seal of the issuing organization is printed. It is.Reference numerals 210 and 220 denote forgery and alteration prevention codes printed on the document together with the document contents.
문서 작성용 프로그램(예, 아래한글, MS-WORD 등)이 문서 작성 장치를 이루는 표시부에 활성화되고, 사용자에 의하여 문서 작성 장치를 이루는 입력부를 통하여 인쇄 명령(ST-230)이 입력되면, 문서 정보와 문서 인쇄장치의 식별코드로부터 암호키를 통하여 암호문이 생성되고, 생성된 암호문으로부터 해쉬 알고리즘을 통하여 해쉬값이 생성되며, 해쉬값은 코드로 생성되어 저장부에 저장되고, 문서 인쇄장치를 통하여 인쇄되는 문서에 함께 인쇄된다. 문서 정보는 미리 지정되는 것이 가능하며, 도 1 및 도 6에서 예를 들면 발급기관, 문서 번호가 문서 정보로 되어 문서 인쇄장치의 식별코드와 함께 암호화되고, 해쉬 변환되어 코드로 생성되는 것이 가능하다.When a document writing program (e.g., Hangul, MS-WORD, etc.) is activated on the display unit constituting the document creating device, and a print command (ST-230) is input by the user through the input unit constituting the document creating device, the document information The ciphertext is generated from the identification code of the document printing apparatus through the encryption key, and the hash value is generated from the generated ciphertext through the hash algorithm. The hash value is generated as a code, stored in the storage unit, and printed through the document printing apparatus. Are printed together on the document. Document information can be specified in advance, for example, in Figures 1 and 6, the issuing authority, the document number is the document information, and encrypted with the identification code of the document printing apparatus, it is possible to generate a code by hash conversion .
문서 작성용 프로그램이 문서 작성 장치(110)를 이루는 표시부에 활성화되고 사용자에 의하여 문서 작성용 프로그램에서 문서가 작성(ST-210) 되며, 문서 작성장치의 저장부에 저장(ST-220)되고, 인쇄 명령이 입력(ST-230) 되면, 문서 작성장치(110)의 제어부로 인쇄명령 신호가 전달된다. 문서 작성장치(110)에서는 문서 정보와 저장부에 저장된 문서 인쇄장치의 식별코드로부터 암호키를 통하여 암호문이 생성(ST-110)되고, 생성된 암호문으로부터 해쉬 알고리즘을 통하여 해쉬값이 생성(ST-130)되며, 해쉬값은 코드로 생성(ST-150)되어 저장부에 저장되고, 문서 인쇄장치(130)를 통하여 인쇄되는 문서에 함께 인쇄되도록 제어된다. 코드는 문서의 미리 설정된 영역에 인쇄된다.The document creating program is activated on the display unit forming thedocument creating device 110, the document is created by the user in the document creating program (ST-210), stored in the storage unit of the document creating device (ST-220), When a print command is input (ST-230), a print command signal is transmitted to the control unit of thedocument creating device 110. In thedocument creating device 110, a cipher text is generated from the document information and the identification code of the document printing apparatus stored in the storage unit through an encryption key (ST-110), and a hash value is generated from the generated cipher text through a hash algorithm (ST- 130, the hash value is generated as a code (ST-150), stored in the storage unit, and controlled to be printed together on the document to be printed through thedocument printing apparatus 130. The code is printed in the preset area of the document.
상기에서 사용자에 의하여 문서 작성장치(110)에 인쇄 명령이 입력(ST-230)되면, 제어부로부터의 제어 명령에 의하여 도 10에 도시한 바와 같이 별도의 문서 정보 입력창(300)이 표시부에 디스플레이되도록 하는 것도 가능하다. 문서 정보 입력창(300)에는 입력영역이 구비되어 사용자는 암호키에 의하여 암호화되거나 해쉬 알고리즘에 의하여 해쉬값으로 변환될 문자, 숫자, 기호 등을 입력할 수 있다.When a print command is input to thedocument creating device 110 by the user (ST-230), a separate documentinformation input window 300 is displayed on the display unit as shown in FIG. 10 by a control command from the controller. It is also possible to. The documentinformation input window 300 is provided with an input area so that the user can input letters, numbers, symbols, etc. to be encrypted by an encryption key or converted into hash values by a hash algorithm.
문서 정보 입력창(300)의 입력 영역은 도 10에 도시된 바와 같이, 복수의 영역으로 분할되어, 특정 내용이 입력되도록 하는 것도 가능하다. 입력 영역은 도 10에 도시된 바와 같이 발급기관명이 입력되도록 하는 입력 영역(310), 문서번호가 입력되도록 하는 입력 영역(330), 문서 내용의 일부 또는 전부가 입력되도록 하는 입력 영역(350)으로 분할되어 복수의 입력 영역으로 디스플레이되도록 하는 것도 가능하다. 도 10에서와 같이 입력 영역이 분할되고, 특정한 내용이 입력되도록 하여 위변조 확인이 착오 없이 정확하고 신속하게 이루어질 수 있다. 도 10에서와 같이 별도의 문서 정보 입력창(300)에 입력된 내용은 문서 파일과 별도로 저장되어 위변조 확인시 제공된다.As illustrated in FIG. 10, the input area of the documentinformation input window 300 may be divided into a plurality of areas so that specific contents may be input. The input area is aninput area 310 for inputting an issuer name, aninput area 330 for inputting a document number, and aninput area 350 for inputting part or all of document contents as shown in FIG. 10. It is also possible to divide the display into a plurality of input regions. As shown in FIG. 10, the input area is divided and specific contents are input so that the forgery confirmation can be accurately and quickly performed without error. As shown in FIG. 10, the contents input in the separate documentinformation input window 300 are stored separately from the document file and provided when the forgery is confirmed.
문서 정보 입력창(300)의 입력 영역에 입력된 내용이 문서 정보로 되어 문서 출력장치 식별코드 정보와 함께 암호키에 의하여 암호화되거나 해쉬 알고리즘에 의하여 해쉬값으로 변환된다.The content input in the input area of the documentinformation input window 300 becomes document information and is encrypted by an encryption key together with document output device identification code information or converted into a hash value by a hash algorithm.
인쇄된 문서에는 문서 인쇄장치(130)의 시리얼 번호나 문서 인쇄 일자를 나타내도록 문서 인쇄장치(130) 제조사의 고유 마크가 인쇄된다. 고유 마크는 같은 패턴이 반복되며 육안으로는 식별되지 않도록 인쇄된다. 예를 들면 옅은 노랑색으로 인쇄된다. 따라서 반복된 한 패턴의 고유 마크가 문서 인쇄장치(130)의 식별 코드 정보로 이용될 수 있다.The printed document is printed with a unique mark of the manufacturer of thedocument printing apparatus 130 to indicate the serial number of thedocument printing apparatus 130 or the document printing date. Unique marks are printed so that the same pattern is repeated and not visible to the naked eye. For example, it is printed in light yellow. Therefore, a unique mark of one repeated pattern may be used as identification code information of thedocument printing apparatus 130.
문서 작성 장치(110)에 연결된 문서 인쇄장치(130)로부터 기 인쇄된 문서가 스캔되어 이미지가 획득되며(이미지 획득 단계), 식별코드 분석용 문서 이미지가 RGB 이미지에서 CMYK 이미지로 변환되며(이미지 변환 단계), CMYK 이미지의 각 픽셀의 색상을 나타내는 CMYK 조합에서 Y성분값을 제외한 나머지 값이 0으로 되며(특정 성분 제거 단계), 이진화되어(이진화 단계) 식별코드용 이미지가 마련된다. 상기에서 기 인쇄된 문서는 문서 인쇄장치(130)로부터 출력된 문서로서 손상되거나 오염되지 않은 어떤 문서라도 상관없다. 상기와 같은 단계를 통하여 도 4에 도시된 바와 같은 도트(DOT) 배열된 식별코드 분석용 이미지가 마련된다.Documents pre-printed from thedocument printing device 130 connected to thedocument generating device 110 are scanned to obtain an image (image acquisition step), and the document image for identification code analysis is converted from an RGB image to a CMYK image (image conversion). Step) In the CMYK combination representing the color of each pixel of the CMYK image, the remaining values except for the Y component value become 0 (specific component removal step), and are binarized (binarization step) to prepare an image for identification code. The document previously printed may be any document that is not damaged or contaminated as a document output from thedocument printing apparatus 130. Through the above steps, the image for analyzing the identification code arranged with the dots (DOT) as shown in FIG. 4 is prepared.
상기에서 RGB 이미지에서 CMYK 이미지로의 변환은 스캔되어 획득된 RGB 이미지를 이루는 각 픽셀의 R, G, B 성분값이 계산 로직을 통하여 C, M, Y로 연산된다.In the conversion from the RGB image to the CMYK image, the R, G, and B component values of each pixel constituting the scanned RGB image are calculated by C, M, and Y through calculation logic.
예를 들면, 아래와 같은 계산 로직을 통하여 연산되어, RGB 이미지에서 CMYK 이미지로 변환될 수 있다.For example, it may be calculated through the following calculation logic to convert from an RGB image to a CMYK image.
float r, g, b;float r, g, b;
k = Math.min(1-r, 1-g, 1-b);k = Math. min (1-r, 1-g, 1-b);
if (k == 1) {c = m = y = 0; k = 1;}if (k == 1) {c = m = y = 0; k = 1;}
else {else {
c = (1 - r - k) / (1 - k);c = (1-r-k) / (1-k);
m = (1 - g - k) / (1 - k);m = (1-g-k) / (1-k);
y = (1 - b - k) / (1 - k);}y = (1-b-k) / (1-k);}
상기에서 r, g, b는 RGB이미지를 이루는 각 픽셀의 r, g, b의 값을 나타내며, c, m, y는 CMYK이미지를 이루는 각 픽셀의 c, m, y 값을 나타낸다.In the above, r, g, and b represent the values of r, g, and b of each pixel of the RGB image, and c, m, and y represent the c, m, and y values of each pixel of the CMYK image.
일반적으로 문서 인쇄장치(130)에서 인쇄된 문서의 문서 인쇄장치(130) 식별용 문양은 복수의 도트(DOT)가 배열을 이루어 인쇄되며, 도트(DOT)의 배열은 중복되어 인쇄된다. 그리고 복수의 도트(DOT)는 육안으로 식별되지 않도록 하기 위하여 옅은 노랑색 계통으로 인쇄된다. 따라서 변환된 CMYK 이미지를 이루는 각 픽셀에서 Y 성분을 제외한 나머지 성분의 값이 "0"으로 되고, 이진화되면 도 7의 B로 표시한 부분에서와 같은 도트 배열의 이미지가 획득된다. 예를 들면, 이진화에 있어서 Y 성분이 50% 이상인 아닌 픽셀의 C, M, Y 성분값이 100%로 되고, 50% 이하인 때는 C, M, Y 성분값이 0%으로 변환된다.In general, a pattern for identification of thedocument printing apparatus 130 of a document printed by thedocument printing apparatus 130 is printed by forming a plurality of dots (DOT) in an array, and the arrangement of the dots (DOT) is overlapped and printed. In addition, the plurality of dots DOT are printed in a pale yellow color scheme so as not to be visually identified. Accordingly, the value of the remaining components except for the Y component is “0” in each pixel constituting the converted CMYK image, and when binarized, an image having the same dot arrangement as in the portion indicated by B of FIG. 7 is obtained. For example, in binarization, the C, M, and Y component values of a pixel whose Y component is not 50% or more are 100%, and when it is 50% or less, the C, M, and Y component values are converted to 0%.
도 7은 중복된 배열 중 2개의 배열의 예를 도시한 것이다. 도트(DOT)가 배열의 규칙성에 의하여 문서 인쇄장치(130)의 제조사가 확인된다.7 shows an example of two arrangements of overlapping arrangements. The manufacturer of thedocument printing apparatus 130 is confirmed by the regularity of the dot DOT.
도 7은 A사의 문서 인쇄장치(130)에서 인쇄된 문서로부터 마련된 도트(DOT) 배열로서, 15×8(열행) 배열을 가지며, 첫열의 8개 도트는 인쇄 일자를 나타내고, 11∼15열은 문서 인쇄장치(130)의 시리얼 번호를 나타낸다. 시리얼 번호를 나타내는 열의 도트로부터 제조사가 파악될 수 있다. 상기와 같이 반복되어 인쇄되는 도트 배열의 반복 한 구간의 도트 배열 정보가 문서 인쇄장치(130)의 식별코드 정보가 된다. 도 7에서와 같은 도토 배열이 획득되면 문서 인쇄장치(130)의 시리얼 번호와 인쇄일자가 얻어진다. 또는 반복 한 구간의 도토 배열의 정보에서 예를 들면 도 7의 첫째열은 "101100010"으로, 11째열은 "01011000"으로, 12째열은 "10001010"으로 입력되어 첫째열, 11∼15열의 도트 배열이 문서 인쇄장치(130)의 식별코드 정보로 되어 저장부에 저장될 수 있다. 문서 인쇄장치(130)의 식별코드 정보에는 인쇄일자와 시리얼 번호가 포함된다.FIG. 7 is a dot (DOT) array provided from a document printed by thedocument printing apparatus 130 of Company A, and has a 15 × 8 (column row) array, wherein eight dots in the first column represent the printing date, and 11 to 15 columns are represented. The serial number of thedocument printing apparatus 130 is shown. The manufacturer can be identified from the dot in the column indicating the serial number. The dot array information of the repeated section of the dot array repeatedly printed as described above becomes the identification code information of thedocument printing apparatus 130. When the clay arrangement as shown in FIG. 7 is obtained, the serial number and print date of thedocument printing apparatus 130 are obtained. Alternatively, in the information on the clay arrangement of the repeated section, for example, the first column of FIG. 7 is inputted as "101100010", the 11th column is inputted as "01011000", and the 12th column is inputted as "10001010", and the dot array of the first column and 11 to 15 columns is input. The identification code information of thedocument printing apparatus 130 may be stored in the storage unit. The identification code information of thedocument printing apparatus 130 includes a printing date and a serial number.
문서 인쇄 일자는 인쇄 명령이 입력될 때 문서 작성 장치(110)로부터 획득되어 저장부에 저장될 수 있다. 문서 인쇄장치(130)의 제조사 명칭, 문서 인쇄장치(130)의 시리얼 번호, 문서 작성 장치(110)로부터 획득되는 문서 인쇄 일자 중 어느 하나 이상의 조합이 문서 인쇄장치(130)의 식별코드 정보로 저장부에 저장될 수 있다. 제조사 명칭은 아스키 코드로 변환되고 2진수화 되어 문서 인쇄장치(130)의 식별코드 정보로 저장부에 저장된다. 마찬가지로 시리얼 번호와 문서 인쇄 일자도 2진수화되어 식별코드 정보로 저장부에 저장된다. 문서 인쇄 시간도 포함될 수 있다.The document printing date may be obtained from thedocument creating device 110 when the print command is input and stored in the storage unit. The combination of any one or more of a manufacturer name of thedocument printing apparatus 130, a serial number of thedocument printing apparatus 130, and a document printing date obtained from thedocument generating apparatus 110 is stored as identification code information of thedocument printing apparatus 130. Can be stored in wealth. The manufacturer's name is converted into an ASCII code and binaryized and stored in the storage unit as identification code information of thedocument printing apparatus 130. Similarly, the serial number and the document print date are binarized and stored as identification code information in the storage. Document printing time may also be included.
코드는 위조용 코드와 변조용 코드로 별도로 생성되어 인쇄시 문서에 포함되어 인쇄될 수 있다.The code may be generated separately from the forgery code and the modulation code, and included in the document when printed and printed.
사용자는 일반적으로 표시부에 문서 작성용 프로그램을 활성화시키고, 문서 작성을 위하여 기본 문서를 불러오고, 기본 문서에 문서 내용을 입력하여 문서를 작성한다. 기본 문서에는 발급기관이 기재되고, "수신", "일자", "제목", 발급기관장, "문서번호" 등이 기재되어 있으며, 기본 문서에 입력부를 통하여 "수신" 우측에 수신 받을 대상을 입력하고, "일자" 우측에 작성 일자를 입력하고, "제목" 우측에 문서 제목을 입력하고, 문서 내용 기재 부분에 문서에 기재될 내용을 입력하며, "문서번호" 우측에 문서 번호를 입력하여 문서 작성을 완료하게 된다. 따라서 문서에 기재된 내용은 기본 문서에 이미 기재된 내용(기본 문서 내용)과, 사용자가 기본 문서에 입력하는 내용(추가 기재 내용)으로 구분될 수 있다.A user generally activates a program for creating a document on the display unit, loads a basic document for creating a document, and writes a document by inputting the document content into the basic document. In the basic document, the issuing organization is described, and the "receiving", "date", "title", head of the issuing organization, and "document number" are input. Enter the creation date on the right side of "Date", enter the document title on the right side of "Title", enter the content to be described on the document in the document content description section, and enter the document number on the right of "Document number" You are done. Therefore, the contents described in the document may be divided into contents already described in the basic document (basic document contents) and contents input by the user in the basic document (additional description contents).
기본 문서 내용이 위조 확인용 코드 생성에 사용되고, 추가 기재 내용이 변조 확인용 코드 생성에 각각 사용될 수 있다. 코드 생성은 위에서 설명한 바와 같은 방법으로 생성되므로 상세한 설명은 생략한다.The basic document contents can be used for generating the forgery confirmation code, and the additional descriptions can be used for generating the modulation confirmation code, respectively. Code generation is generated in the same manner as described above, so a detailed description thereof will be omitted.
상기와 같이 코드가 함께 인쇄된 문서의 위변조를 확인하기 위해서는, 인쇄된 문서를 스캔하여 문서 이미지를 획득하고, 문서 인쇄장치(130)의 식별코드 정보를 문서 작성자로부터 제공받거나 위에서와 같은 단계를 거쳐 획득하고, 문서에 기재된 문서 정보와 함께 문서 작성자로부터 제공받은 암호키를 통하여 암호화하여 암호문을 마련하고, 암호문으로부터 해쉬 알고리즘을 통하여 해쉬값을 생성하며, 해쉬값으로부터 코드를 생성하여 문서에 인쇄되어 있는 코드와 비교하여 동일한지 여부를 확인함으로써 위변조 여부를 확인할 수 있다.In order to confirm the forgery of the document printed with the code as described above, to obtain a document image by scanning the printed document, receiving the identification code information of thedocument printing apparatus 130 from the document creator or through the steps as described above Obtain a ciphertext by acquiring it through the encryption key provided from the document creator together with the document information described in the document, generate a hash value through a hash algorithm from the ciphertext, and generate a code from the hash value and print it on the document. Forgery can be checked by comparing the code to see if it is the same.
도 11에 도시된 바와 같이, 본 발명에 따르는 위변조 방지 기능이 구비된 유가증권 생성 방법이 실행되는 유가증권 인쇄 시스템(400)은 유가증권 인쇄장치 식별코드 정보, 해쉬 알고리즘, 코드 생성 기능을 가지는 유가증권 작성 장치(410)와, 상기 유가증권 작성 장치(410)에 연결되어 유가증권이 인쇄되는 유가증권 인쇄장치(420)로 이루어진다. 유가증권 작성 장치(410)의 예로 표시부(예, LCD), 입력부(예, 키보드, 마우스), 저장부, 제어부(마이컴)로 이루어진 컴퓨터를 들 수 있으며, 유가증권 인쇄장치(420)의 예로 프린터(잉크젯 프린터, 레이저 프린터)를 들 수 있다. 유가증권 작성 장치(410)에 저장된 유가증권은 사용자의 인쇄 명령에 의하여 정보가 유가증권 인쇄장치(420)로 전달되어 인쇄된다.As shown in FIG. 11, thesecurity printing system 400 in which the security generation method with the forgery prevention function according to the present invention is executed, has a security value having a security printing device identification code information, a hash algorithm, and a code generation function. It is composed of asecurities producing device 410 and asecurities printing device 420 connected to thesecurities producing device 410 to print securities. An example of thesecurity creating device 410 may be a computer including a display unit (for example, LCD), an input unit (for example, a keyboard and a mouse), a storage unit, and a control unit (microcom). An example of thesecurity printing apparatus 420 may be a printer. (Ink jet printers, laser printers). The securities stored in thesecurities producing device 410 are printed by transferring the information to thesecurities printing device 420 according to a user's printing command.
- 코드가 인쇄된 유가증권, 위변조 방지방법-Securities with code printed, how to prevent forgery
본 발명에 따르는 위변조 방지 기능이 구비된 유가증권 생성 방법이 실행되는 유가증권 인쇄 시스템(400)을 이루는 유가증권 인쇄장치(420)에서 유가증권에는 유가증권 정보와, 유가증권 출력장치 식별코드 정보가 암호키를 통하여 암호화되어 암호문이 생성되는 단계(ST-310, 암호문 생성 단계)와, 암호문으로부터 해쉬 알고리즘에 의하여 해쉬값이 생성되는 단계(ST-330, 해쉬값 생성 단계)와, 해쉬값으로부터 코드가 생성되는 단계(ST-350, 코드 생성 단계)에서 생성된 코드가 유가증권 내용과 함께 유가증권에 인쇄된다. 상기 코드는 바코드와 같은 1차원 코드와, QR코드와 같은 2차원 코드일 수 있다. 상기에서 암호문 생성 단계가 생략되고, 유가증권 정보와 유가증권 출력장치 식별코드 정보로부터 해쉬 알고리즘에 의하여 해쉬값이 생성되는 것도 가능하다. 유가증권 정보는 표시 금액, 발생기관 등이 될 수 있다. 유가증권에는 종류, 발급기관, 금액, 유가증권번호 등이 포함된다.In thesecurities printing apparatus 420 of thesecurities printing system 400 in which the securities generating method having the forgery prevention function according to the present invention is executed, the securities have securities information and securities output device identification code information. Encrypting through an encryption key to generate a cipher text (ST-310, cipher text generation step), generating a hash value from the cipher text by a hash algorithm (ST-330, hash value generating step), and a code from the hash value The code generated in the step (ST-350, code generation step) is generated is printed on the security together with the content of the security. The code may be a one-dimensional code such as a barcode and a two-dimensional code such as a QR code. The cipher text generation step may be omitted, and the hash value may be generated by the hash algorithm from the securities information and the securities output device identification code information. The security information may be a displayed amount, a generating institution, and the like. Securities include types, issuers, amounts, and securities numbers.
유가증권 작성용 프로그램이 유가증권 작성 장치를 이루는 표시부에 활성화되고, 사용자에 의하여 유가증권 작성 장치를 이루는 입력부를 통하여 인쇄 명령이 입력되면, 유가증권 정보(제1 데이터)와 유가증권 인쇄장치의 식별코드(제2 데이터)로부터 암호키를 통하여 암호문이 생성되고, 생성된 암호문으로부터 해쉬 알고리즘을 통하여 해쉬값이 생성되며, 해쉬값은 코드로 생성되어 저장부에 저장되고, 유가증권 인쇄장치를 통하여 인쇄되는 유가증권에 함께 인쇄된다. 유가증권 정보는 미리 지정되는 것이 가능하며, 발급기관, 인쇄될 금액 및 유가증권 번호가 유가증권 정보로 되어 유가증권 인쇄장치의 시리얼 번호 등과 같은 식별코드와 함께 암호화되고, 해쉬 변환되어 코드로 생성되는 것이 가능하다.When the program for creating a security is activated on the display unit constituting the security creating device, and a print command is input by the user through the input unit constituting the security creating device, the identification of the security information (first data) and the security printing device is identified. A cipher text is generated from a code (second data) through an encryption key, and a hash value is generated from a generated cipher text through a hash algorithm. The hash value is generated as a code, stored in a storage unit, and printed through a security printing apparatus. Are printed together on the security. Securities information can be specified in advance, the issuer, the amount to be printed and the securities number become the securities information, encrypted with an identification code such as the serial number of the securities printing apparatus, hash-converted and generated It is possible.
유가증권 작성용 프로그램이 유가증권 작성 장치(410)를 이루는 표시부에 활성화되고 사용자에 의하여 유가증권 작성용 프로그램에서 유가증권에 기재될 내용(예, 금액)이 입력되며, 유가증권 작성장치의 저장부에 저장되고, 인쇄 명령이 입력 되면, 유가증권 작성장치의 제어부로 인쇄명령 신호가 전달된다. 유가증권 작성장치에서는 유가증권 정보와 저장부에 저장된 유가증권 인쇄장치의 식별코드로부터 암호키(470)를 통하여 암호문이 생성(ST-310)되고, 생성된 암호문(440)으로부터 해쉬 알고리즘(480)을 통하여 해쉬값이 생성(ST-330)되며, 해쉬값은 코드로 생성(ST-350)되어 2차원 코드(460)에 대한 정보가 저장부에 저장되고, 유가증권 인쇄장치(420)를 통하여 인쇄되는 유가증권에 함께 인쇄되도록 제어된다. 코드는 유가증권의 미리 설정된 영역에 인쇄된다.The program for creating a security is activated on the display unit constituting thesecurity creating device 410, and the contents (for example, the amount) to be written in the security in the security creating program is input by the user, and the storage unit of the security creating device If the print command is stored in the print command, the print command signal is transmitted to the control unit of the securities preparation device. In the securities producing apparatus, a cipher text is generated from the securities information and the identification code of the securities printing apparatus stored in the storage through the encryption key 470 (ST-310), and thehash algorithm 480 from the generatedcipher text 440. Hash value is generated through (ST-330), the hash value is generated as a code (ST-350) is stored in the storage unit information on the two-dimensional code 460, through thesecurity printing apparatus 420 It is controlled to be printed together on the security being printed. The code is printed in the preset area of the security.
도 12에서 제1 데이터는 유가증권 정보로서 유가증권에 인쇄되는 발행 기관과 금액이며, 제2 데이터는 유가증권 인쇄장치(420)의 식별코드로서 유가증권 인쇄장치(420)의 시리얼 번호이며, 제3 데이터는 제어부에 연결된 타이머로부터 획득되는 인쇄 날짜이다.In FIG. 12, the first data is the issuing agency and the amount printed on the securities as the securities information, and the second data is the serial number of thesecurities printing apparatus 420 as the identification code of thesecurities printing apparatus 420. 3 The data is the print date obtained from the timer connected to the controller.
상기에서 사용자에 의하여 유가증권 작성장치(410)에 인쇄 명령이 입력되면, 제어부로부터의 제어 명령에 의하여 유가증권 정보 입력창이 표시부에 디스플레이되도록 하는 것도 가능하다. 유가증권 정보 입력창에는 입력영역이 구비되어 사용자는 암호키에 의하여 암호화되거나 해쉬 알고리즘에 의하여 해쉬값으로 변환될 금액 등이 입력될 수 있다.When a print command is inputted to thesecurities preparing device 410 by the user, the securities information input window may be displayed on the display unit by a control command from the controller. The security information input window is provided with an input area so that the user may input an amount to be encrypted by an encryption key or converted into a hash value by a hash algorithm.
유가증권 정보 입력창의 입력 영역에 입력된 내용이 유가증권 정보로 되어 유가증권 인쇄장치 식별코드 정보와 함께 암호키에 의하여 암호화되거나 해쉬 알고리즘에 의하여 해쉬값으로 변환된다.The content entered in the input area of the security information input window becomes the security information and is encrypted by the encryption key together with the security printing device identification code information or converted into a hash value by a hash algorithm.
유가증권에는 유가증권 인쇄장치(420)의 시리얼 번호나 유가증권 인쇄 일자를 나타내도록 유가증권 인쇄장치(420) 제조사의 고유 마크가 인쇄된다. 고유 마크는 같은 패턴이 반복되며 육안으로는 식별되지 않도록 인쇄된다. 예를 들면 옅은 노랑색으로 인쇄된다. 따라서 반복된 한 패턴의 고유 마크가 유가증권 인쇄장치(420)의 식별 코드 정보로 이용될 수 있다.On the securities, a unique mark of the manufacturer of thesecurities printing apparatus 420 is printed to indicate the serial number of thesecurities printing apparatus 420 or the date of printing the securities. Unique marks are printed so that the same pattern is repeated and not visible to the naked eye. For example, it is printed in light yellow. Therefore, a unique mark of one repeated pattern may be used as identification code information of thesecurity printing apparatus 420.
유가증권 작성 장치(410)에 연결된 유가증권 인쇄장치(420)로부터 인쇄된 기 유가증권이 스캔되어 이미지가 획득되며(이미지 획득 단계), 식별코드 분석용 유가증권 이미지가 RGB 이미지에서 CMYK 이미지로 변환되며(이미지 변환 단계), CMYK 이미지의 각 픽셀의 색상을 나타내는 CMYK 조합에서 Y성분값을 제외한 나머지 값이 0으로 되며(특정 성분 제거 단계), 이진화되어(이진화 단계) 식별코드용 이미지가 마련된다. 상기에서 기 유가증권은 유가증권 인쇄장치(420)로부터 출력된 유가증권로서 손상되거나 오염되지 않은 어떤 유가증권라도 상관없다. 상기와 같은 단계를 통하여 도 17에 도시된 바와 같은 도트(DOT) 배열된 식별코드 분석용 이미지가 마련된다.An image is acquired by scanning the printed securities printed from thesecurities printing device 420 connected to the securities creating device 410 (image acquisition step), and the securities image for identification code analysis is converted from an RGB image to a CMYK image. In the CMYK combination representing the color of each pixel of the CMYK image, the remaining values except for the Y component value become 0 (specific component removal step), and are binarized (binarization step) to prepare an image for the identification code. . The base securities may be any securities that are not damaged or contaminated as the securities output from thesecurities printing apparatus 420. Through the above steps, an image for analyzing an identification code arranged with dots (DOT) as shown in FIG. 17 is prepared.
상기에서 RGB 이미지에서 CMYK 이미지로의 변환은 스캔되어 획득된 RGB 이미지를 이루는 각 픽셀의 R, G, B 성분값이 계산 로직을 통하여 C, M, Y로 연산된다.In the conversion from the RGB image to the CMYK image, the R, G, and B component values of each pixel constituting the scanned RGB image are calculated by C, M, and Y through calculation logic.
예를 들면, 아래와 같은 계산 로직을 통하여 연산되어, RGB 이미지에서 CMYK 이미지로 변환될 수 있다.For example, it may be calculated through the following calculation logic to convert from an RGB image to a CMYK image.
float r, g, b;float r, g, b;
k = Math.min(1-r, 1-g, 1-b);k = Math. min (1-r, 1-g, 1-b);
if (k == 1) {c = m = y = 0; k = 1;}if (k == 1) {c = m = y = 0; k = 1;}
else {else {
c = (1 - r - k) / (1 - k);c = (1-r-k) / (1-k);
m = (1 - g - k) / (1 - k);m = (1-g-k) / (1-k);
y = (1 - b - k) / (1 - k);}y = (1-b-k) / (1-k);}
상기에서 r, g, b는 RGB이미지를 이루는 각 픽셀의 r, g, b의 값을 나타내며, c, m, y는 CMYK이미지를 이루는 각 픽셀의 c, m, y 값을 나타낸다.In the above, r, g, and b represent the values of r, g, and b of each pixel of the RGB image, and c, m, and y represent the c, m, and y values of each pixel of the CMYK image.
유가증권 인쇄장치(420)를 통하여 인쇄된 유가증권에는 유가증권 인쇄장치(420) 식별용 문양인 복수의 도트(DOT)가 배열을 이루어 인쇄되며, 도트(DOT)의 배열은 중복되어 인쇄된다. 그리고 복수의 도트(DOT)는 육안으로 용이하게 식별되지 않도록 옅은 노랑색 계통으로 인쇄된다. 따라서 변환된 CMYK 이미지를 이루는 각 픽셀에서 "Y" 성분을 제외한 나머지 성분의 값이 "0"으로 되고, 이진화되면 도 17의 B에 표시한 부분에서와 같은 도트 배열의 이미지가 획득된다. 예를 들면, 이진화에 있어서 Y 성분이 50% 이상인 아닌 픽셀의 C, M, Y 성분값이 100%로 되고, 50% 이하인 때는 C, M, Y 성분값이 0%으로 변환된다.The securities printed through thesecurities printing apparatus 420 are printed by arranging a plurality of dots DOT, which are patterns for identifying thesecurities printing apparatus 420, and the arrangement of the dots DOT is overlapped and printed. In addition, the plurality of dots DOT are printed in a pale yellow color system so that they are not easily identified by the naked eye. Therefore, in each pixel constituting the converted CMYK image, the value of the remaining components except for the "Y" component becomes "0", and when binarized, an image of the dot array as shown in part B of FIG. 17 is obtained. For example, in binarization, the C, M, and Y component values of a pixel whose Y component is not 50% or more are 100%, and when it is 50% or less, the C, M, and Y component values are converted to 0%.
도 17은 중복된 배열 중 2개의 배열의 예를 도시한 것이다. 도트(DOT)가 배열의 규칙성에 의하여 유가증권 인쇄장치(420)의 제조사와 시리얼번호가 확인될 수 있다. 또한 도트 배열로부터 인쇄일자도 확인될 수 있다.17 shows an example of two arrangements of overlapping arrangements. The manufacturer and serial number of thesecurity printing apparatus 420 may be confirmed by the regularity of the dot DOT. The date of printing can also be confirmed from the dot arrangement.
도 17은 A사의 유가증권 인쇄장치(420)에서 인쇄된 유가증권으로부터 마련된 도트(DOT) 배열로서, 15×8(열행) 배열을 가지며, 첫열의 8개 도트는 인쇄 일자를 나타내고, 11∼15열은 유가증권 인쇄장치(420)의 시리얼 번호를 나타낸다. 시리얼 번호를 나타내는 열의 도트로부터 제조사가 파악될 수 있다. 상기와 같이 반복되어 인쇄되는 도트 배열의 반복 한 구간의 도트 배열 정보가 유가증권 인쇄장치(420)의 식별코드 정보가 된다. 도 17에서와 같은 도토 배열이 획득되면 유가증권 인쇄장치(420)의 시리얼 번호와 인쇄일자가 얻어진다. 또는 반복 한 구간의 도토 배열의 정보에서 예를 들면 도 17의 첫째열은 "101100010"으로, 11째열은 "01011000"으로, 12째열은 "10001010"으로 입력되어 첫째열, 11∼15열의 도트 배열이 유가증권 인쇄장치(120)의 식별코드 정보로 되어 저장부에 저장될 수 있다. 유가증권 인쇄장치(420)의 식별코드 정보에는 인쇄일자와 시리얼 번호가 포함된다.FIG. 17 is a dot (DOT) arrangement provided from the securities printed by thesecurities printing apparatus 420 of the company A, having a 15 × 8 (row row) arrangement, and the eight dots of the first column represent the printing dates, and 11 to 15 The column shows the serial number of thesecurity printing apparatus 420. The manufacturer can be identified from the dot in the column indicating the serial number. The dot array information of the repeated section of the dot array repeatedly printed as described above becomes the identification code information of thesecurity printing apparatus 420. When the clay arrangement as shown in FIG. 17 is obtained, the serial number and print date of thesecurity printing apparatus 420 are obtained. Alternatively, in the information of the clay arrangement of the repeated section, for example, the first column of FIG. 17 is inputted as "101100010", the 11th column is inputted as "01011000", and the 12th column is inputted as "10001010", and the dot array of the first column and 11 to 15 columns is input. The identification code information of the security printing apparatus 120 may be stored in the storage unit. The identification code information of thesecurity printing apparatus 420 includes a printing date and a serial number.
유가증권 인쇄 일자는 인쇄 명령이 입력될 때 유가증권 작성 장치(410)로부터 획득되어 저장부에 저장될 수 있다. 유가증권 인쇄장치(420)의 제조사 명칭, 유가증권 인쇄장치(420)의 시리얼 번호, 유가증권 작성 장치(410)로부터 획득되는 유가증권 인쇄 일자 중 어느 하나 이상의 조합이 유가증권 인쇄장치(420)의 식별코드 정보로 저장부에 저장될 수 있다. 제조사 명칭은 아스키 코드로 변환되고 2진수화 되어 유가증권 인쇄장치(420)의 식별코드 정보로 저장부에 저장된다. 마찬가지로 시리얼 번호와 유가증권 인쇄 일자도 2진수화되어 식별코드 정보로 저장부에 저장된다. 유가증권 인쇄 시간도 포함될 수 있다.The security print date may be obtained from thesecurity creation device 410 when the print command is input and stored in the storage unit. The combination of any one or more of the manufacturer name of thesecurity printing apparatus 420, the serial number of thesecurity printing apparatus 420, and the security printing date obtained from thesecurity printing apparatus 410 may be used. The identification code information may be stored in the storage unit. The manufacturer's name is converted into an ASCII code and binaryized and stored in the storage unit as identification code information of thesecurity printing apparatus 420. Similarly, serial numbers and securities print dates are binarized and stored as identification code information in the storage. Securities printing time may also be included.
코드는 위조용 코드와 변조용 코드로 별도로 생성되어 인쇄시 유가증권에 포함되어 인쇄된다.Codes are generated separately from counterfeit codes and tamper codes, which are included in the security when printed and printed.
상기에서와 같이 유가증권에 유가증권의 내용(유가증권 종류, 발행기관, 금액, 유가증권번호 등)에 더하여 유가증권 인쇄장치(420)에 대한 정보가 포함된 코드가 함께 인쇄되므로, 유가증권의 위조가 원천적으로 차단된다.As described above, a code including information on thesecurities printing apparatus 420 is printed on the securities in addition to the contents of the securities (the type of securities, issuer, amount, and securities number, etc.). Counterfeiting is blocked at the source.
- 위변조 확인방법-How to check forgery and alteration
상기와 같이 코드가 함께 인쇄된 유가증권의 위변조를 확인하기 위해서는, 유가증권을 스캔하여 유가증권 이미지를 획득하고, 유가증권 인쇄장치(420)의 식별코드 정보를 유가증권 작성자로부터 제공받거나 스캔된 이미지로부터 획득하고, 유가증권에 기재된 유가증권 정보와 함께 유가증권 작성자로부터 제공받은 암호키를 통하여 암호화하여 암호문을 마련하고, 암호문으로부터 해쉬 알고리즘을 통하여 해쉬값을 생성하며, 해쉬값으로부터 코드를 생성하여 유가증권에 인쇄되어 있는 코드와 비교하여 동일한지 여부를 확인함으로써 위변조 여부를 확인할 수 있다.In order to check the forgery of the securities printed with the code as described above, the securities are scanned to obtain a securities image, and the identification code information of thesecurities printing apparatus 420 is provided from the securities creator or the scanned image. Obtained from the cryptocurrency key and the cryptographic key provided from the securities creator together with the security information described in the securities to prepare a ciphertext, generate a hash value through a hash algorithm from the ciphertext, and generate a code from the hash value Forgery can be checked by comparing the codes printed on the securities to see if they are identical.
도 13은 유가증권의 위변조 확인 방법이 실행되는 유가증권 위변조 확인 시스템을 도시한 것으로, 도 13에 도시된 바와 같이 유가증권 위변조 확인 시스템(500)은 해쉬값 생성 알고리즘과 코드 생성 기능을 가지며, 제어부에 연결된 입력부와, 제어부에 연결된 표시부와, 제어부에 연결된 저장부로 이루어지는 유가증권 확인 장치(510)와; 유가증권 확인 장치(510)에 연결되어 입력부(513)의 입력에 의하여 유가증권이 스캔되어 이미지가 마련되도록 하는 스캐너(520)로 이루어진다. 유가증권 확인 장치(510)의 예로 표시부(515, 예, LCD), 입력부(513, 예, 키보드, 마우스), 저장부(517), 제어부(511, 마이컴)로 이루어진 컴퓨터를 들 수 있다. 상기 스캐너(520)는 연결부(519)를 통하여 제어부(511)에 연결된다.FIG. 13 illustrates a security forgery forgery verification system in which a forgery and forgery verification method is executed. As illustrated in FIG. 13, the security forgery andforgery verification system 500 includes a hash value generation algorithm and a code generation function. Asecurity check apparatus 510 comprising an input unit connected to the display unit, a display unit connected to the control unit, and a storage unit connected to the control unit; Thescanner 520 is connected to thesecurity checking device 510 and scans the security by the input of theinput unit 513 to prepare an image. An example of thesecurity confirmation device 510 may be a computer including a display unit 515 (eg, LCD), an input unit 513 (eg, keyboard and mouse), astorage unit 517, and a control unit 511 (microcomputer). Thescanner 520 is connected to thecontrol unit 511 through aconnection unit 519.
스캐너(520)를 통하여 획득(ST-410)된 유가증권 이미지로부터 OCR알고리즘을 이미지로부터 글자가 인식되어 금액,발생기관 등에 대한 정보가 획득되어 저장부(517)에 저장된다(ST-430). 이미지로부터 텍스트가 인식되는 내용은 공지의 기술이므로 이에 대한 설명은 생략한다.The OCR algorithm is recognized from the securities image acquired through the scanner 520 (ST-410), and the text is recognized from the image, and information about the amount, the generating institution, and the like is obtained and stored in the storage unit 517 (ST-430). Since the text is recognized from the image is a well-known technology, description thereof will be omitted.
유가증권 이미지는 RGB 이미지에서 CMYK 이미지로 변환되며(ST-415, 이미지 변환 단계), CMYK 이미지의 각 픽셀의 색상을 나타내는 CMYK 조합에서 Y성분값을 제외한 나머지 값이 0으로 되고(특정 성분 제거) 이진화되어(ST-415b) 도트 분석용 이미지가 마련된다. RGB 이미지에서 CMYK 이미지로 변환되는 과정과 이진화 과정은 위에서 설명하였으므로 생략한다. 상기와 같은 과정을 거쳐 도 17에 도시된 바와 같은 도트 이미지가 저장될 수 있으며, 반복된 도트 배열 중 어느 한 배열의 도트 배열에 대한 연산을 통하여 유가증권 인쇄장치(420)에 대한 정보인 제2 데이터가 획득될 수 있다(ST-425).The security image is converted from an RGB image to a CMYK image (ST-415, image conversion step), and the CMYK combination representing the color of each pixel in the CMYK image is zero except for the Y component value (specific component removal). Binarization (ST-415b) provides an image for dot analysis. The process of converting from an RGB image to a CMYK image and the binarization process are described above and thus will be omitted. A dot image as shown in FIG. 17 may be stored through the above process, and the second image, which is information on thesecurity printing apparatus 420, may be stored by calculating a dot array of any one of the repeated dot arrays. Data may be obtained (ST-425).
반복 배열된 도트들로부터 도트들을 이루는 픽셀이 추출된다(ST-4201). 반복된 배열의 도트들에 대하여 사용자가 이미지 상에서 구간을 지정하여 1개의 도트 배열에 대한 픽셀 정보가 추출될 수 있다.Pixels constituting the dots are extracted from the repeatedly arranged dots (ST-4201). Pixel information about one dot array may be extracted by the user designating a section on the image for the repeated array of dots.
지정된 구간에서 픽셀을 도트들을 이루는 픽셀들 정보가 C, M, Y 성분값이 100%인 픽셀들의 픽셀 좌표 정보가 저장부에 저장된다. 그리고 저장된 픽셀 정보들로부터 같은 도트를 이루는 픽셀로 분류되어 저장된다. 도트의 크기보다 도트 사이의 거리가 2배 이상 크므로 거리를 지정되어 같은 도트를 이루는 픽셀들이 분류되어 저장될 수 있다. 도트의 크기보다 크고 도트 사이의 최단 거리보다 작은 값이 기준 거리(L)로 입력되어, 1개의 픽셀에 대하여 다른 픽셀까지의 거리가 연산되고 연산된 거리가 기준 거리(L)보다 작은 경우(ST-4203) 같은 도트를 이루는 픽셀이 되며, 이와 같은 과정이 반복되어 같은 도트를 이루는 픽셀이 연산되고, 같은 도트를 이루는 픽셀들의 픽셀 좌표값들이 합산되고(ST-4204), 평균값이 연산되어(ST-4205) 도트의 픽셀 좌표로 연산된다. 상기와 같은 과정을 나머지 픽셀들에 대해서도 연산됨으로써 각 도트들을 이루는 픽셀들이 연산되고, 각 도트들의 픽셀 좌표가 연산된다(ST-4206).Pixel coordinate information of pixels having C, M, and Y component values of 100% of pixels forming dots in a specified section is stored in the storage unit. The pixels are classified and stored as pixels forming the same dot from the stored pixel information. Since the distance between the dots is greater than twice the size of the dots, pixels that form the same dot by specifying the distance may be classified and stored. When a value larger than the size of the dot and smaller than the shortest distance between the dots is input as the reference distance L, the distance to one pixel is calculated for one pixel and the calculated distance is smaller than the reference distance L (ST). The same dot is repeated, the same process is repeated, and the pixel forming the same dot is calculated, the pixel coordinate values of the pixels forming the same dot are summed (ST-4204), and the average value is calculated (ST). -4205) to the pixel coordinates of the dot. By performing the above process on the remaining pixels, the pixels constituting the dots are calculated, and the pixel coordinates of the dots are calculated (ST-4206).
각 도트들의 픽셀 좌표가 연산되고, 각 도트들의 거리가 연산된다. 거리의 연산에 있어서, 도트 배열을 이루는 도트들의 X방향으로의 거리가 연산되고, Y방향으로의 거리가 연산된다. 도트들 사이의 거리가 연산되면, 연산된 거리의 최소값이 도트 사이의 X방향 및 Y방향으로의 거리가 된다(ST-4207). 도 17에서 가로 방향을 X방향, 세로 방향을 Y방향으로 기재한다. 그리고 최대값이 도트 배열의 X방향 및 Y방향으로의 크기가 된다. 최대값이 최소값으로 나누져 X방향 및 Y방향으로 도트의 배열이 갯수가 저장부에 저장된다. 그리고 X방향 및 Y방향의 도트 배열(갯수)로부터 도트들이 있어야 할 X방향 및 Y방향의 좌표값이 연산되어 저장부에 저장된다.The pixel coordinates of each dot are calculated, and the distance of each dot is calculated. In the calculation of the distance, the distance in the X direction of the dots constituting the dot array is calculated, and the distance in the Y direction is calculated. When the distance between the dots is calculated, the minimum value of the calculated distance becomes the distance in the X and Y directions between the dots (ST-4207). In FIG. 17, the horizontal direction is described as the X direction and the vertical direction as the Y direction. The maximum value is the size of the dot array in the X and Y directions. The maximum value is divided by the minimum value so that the number of dots arranged in the X and Y directions is stored in the storage. The coordinate values in the X and Y directions in which the dots should exist are calculated from the dot arrays (number) in the X and Y directions, and are stored in the storage unit.
위에서 연산된 도트들의 좌표와 도트들이 있어야할 좌표값이 X방향 및 Y방향으로 대비되어, 도트가 있어야할 좌표값을 가지는 도트가 있는 경우 "1"로, 도트가 있어야할 좌표값을 가지는 도토가 없는 경우 "0"으로 되도록 하여 X방향 및 Y방향으로 2진수 배열과 같은 숫자 조합이 연산되어 저장된다.The coordinates of the dots computed above and the coordinate values where the dots should be contrasted in the X and Y directions, so that if there is a dot having the coordinate value that should be present, "1". If not, it is set to "0", and a combination of numbers such as a binary array is calculated and stored in the X and Y directions.
저장부(517)에는 미리 시중에 유통되거나, 유가증권 인쇄에 사용되는 유가증권 인쇄장치에 대한 도트들의 배열의 2진수 조합과 정보가 저장되어, 위에서와 같은 과정을 거쳐 저장된 조합과 비교되어, 인쇄장치의 정보가 획득되어 인쇄장치의 시리얼 번호 등이 추출되는 것이 가능하다.Thestorage unit 517 stores binary combinations and information of the arrangement of dots for the securities printing apparatus, which are distributed in the market or used for printing the securities in advance, and are compared with the stored combinations through the above-described process. It is possible to obtain the information of the device to extract the serial number and the like of the printing device.
상기와 같은 과정을 거쳐 획들된 인쇄장치의 정보(비교 제2 데이터; 시리얼 번호, 인쇄장치 제조사 등)가 유가증권에 포함되며 문자 인식 과정을 통하여 저장부에 저장된 유가증권 정보(비교 제1 데이터; 유가증권 종류, 발행 기관, 금액 등)와 함께 해쉬 알고리즘에 의하여 해쉬값이 생성되고, 해쉬값으로부터 2차원 코드(비교 2차원 코드)가 생성된다. 이에 더하여 비교 제3 데이터인 인쇄 일자가 더 포함되어 해쉬값이 생성될 수 있다. 상기 인쇄 일자는 도트 정보로부터 획득될 수 있다.The information (comparative second data; serial number, printer manufacturer, etc.) of the printing device obtained through the above process is included in the securities, and the securities information (comparative first data) stored in the storage unit through a character recognition process; A hash value is generated by a hash algorithm together with the security type, issuer, and amount of money, and a two-dimensional code (comparative two-dimensional code) is generated from the hash value. In addition, a hash date may be generated by further including a printing date as the comparison third data. The print date may be obtained from dot information.
따라서 비교 2차원 코드와 유가증권에 인쇄된 2차원 코드가 비교되어 유가증권의 위변조가 확인될 수 있다.Therefore, forgery of the security may be confirmed by comparing the comparison 2D code and the 2D code printed on the security.
상기에서 비교 제1 데이터와 비교 제2 데이터가 암호키에 의하여 암호문으로 생성되고, 암호문으로부터 해쉬 알고리즘에 의하여 해쉬값이 생성될 수 있다.The comparison first data and the comparison second data may be generated as an encryption text by an encryption key, and a hash value may be generated from the encryption text by a hash algorithm.
본 발명에 따른 위조방지수단이 구비된 문서(600)는 해쉬 알고리즘과 2차원 코드(예, QR코드) 생성 기능을 가지는 문서작성장치와, 상기 문서작성장치에 연결되어 문서가 인쇄되는 프린터인 문서인쇄장치로 이루어진다. 상기 해쉬 알고리즘과 2차원 코드 생성 프로그램은 2차원 코드 생성 기능은 문서작성장치의 저장부에 저장될 수도 있으나, 온라인을 통하여 제공받을 수도 있다. 문서작성장치에 저장되거나 인터넷을 통하여 전송된 문서는 사용자의 인쇄 명령에 의하여 정보가 문서인쇄장치로 전달되어 인쇄된다.Thedocument 600 provided with the anti-counterfeiting means according to the present invention is a document generating device having a hash algorithm and a two-dimensional code (eg QR code) generating function, and a document which is connected to the document producing device and prints a document. It consists of a printing device. The hash algorithm and the 2D code generation program may be stored in the storage unit of the document creating apparatus, but may be provided online. Documents stored in the document creating device or transmitted through the Internet are transferred to the document printing device and printed by the user's print command.
문서작성장치의 예로 표시부(예, LCD), 입력부(예, 키보드, 마우스), 저장부, 제어부(마이컴)로 이루어진 PC와 같은 컴퓨터를 들 수 있으며, 문서인쇄장치(120)의 예로 프린터(잉크젯 프린터, 레이저 프린터 등)를 들 수 있다.An example of the document creating apparatus may be a computer such as a PC including a display unit (for example, LCD), an input unit (for example, keyboard and mouse), a storage unit, and a control unit (microcom). An example of the document printing apparatus 120 may include a printer (inkjet). Printer, laser printer, etc.) can be mentioned.
이하에서는 도 18에 도시한 문서, 도 19에 도시한 유가증권, 그리고 영수증, 시험성적서, 계약서, 증명서 등과 같이 프린터와 같은 프린팅 수단에 의하여 인쇄되는 것을 모두 포함하는 의미로서 "문서"로 기재하여 설명한다.Hereinafter, the document shown in FIG. 18, the securities shown in FIG. 19, and a description including "document" as a meaning including all printed by a printing means such as a printer such as a receipt, a test report, a contract, a certificate, etc. do.
도 18 및 도 19에 도시된 바와 같이 본 발명에 따르는 위조방지수단이 구비된 문서(600)는 문서의 내용이 되는 문서정보와, 위조방지수단(610)으로 이루어진다. 상기 위조방지수단(610)은 문서정보가 인쇄되지 않은 문서의 여백 부분에 인쇄되어 구비된다.As illustrated in FIGS. 18 and 19, thedocument 600 provided with the anti-counterfeiting means according to the present invention includes document information that is the content of the document and the anti-counterfeiting means 610. The anti-counterfeiting means 610 is provided to be printed on the margin of the document is not printed document information.
문서에는 종류에 따라서 발급기관(601)과, 수신처(603)와, 발급일자(605와, 제목과, 문서의 내용(607), 액수 등이 기재되고, 발급기관장의 인감이 날인(609)되며, 문서번호(602) 등이 기재된다.According to the type, theissuer 601, thedestination 603, theissue date 605, the title, thecontent 607, the amount, and the like of the issuer are stamped (609). ,Document number 602 and the like are described.
도 20은 도 18 및 도 19에 도시한 문서(600)에 인쇄되어 구비되는 위조방지수단(610)의 예를 도시한 것으로, 본 발명의 문서(600)에 구비되는 위조방지수단(610)은 도 20에 도시된 바와 같이, 2차원코드(예, QR코드)와, 복수의 망점(640)과, 2차원코드를 둘러싸는 테두리(617)로 이루어진다. 2차원코드는 외곽이 4각형을 이루며 위치찾기심볼(611)과, 기준셀(613)과, 데이터 영역(615)으로 이루어진다. 상기 테두리(617)는 2차원코드로부터 이격되어 2차원코드를 둘러싸는 형태로 인쇄되어, 2차원코드와 테두리(617) 사이에는 여백영역(619)이 형성되고, 상기 복수의 망점(640)은 2차원코드와 테두리(617) 사이인 여백영역(619)에 인쇄된다. 상기 복수의 망점(640)은 가로와 세로로 배열을 이루어 구비된다. 상기 망점(640)은 육안으로 식별되지 않도록 유가증권의 고유 마크와 같이 옅은 노란색 계통의 색으로 인쇄된다. 위조방지수단(610)이 촬영되거나 스캔되어 이미지로 되었을 때, 라벨링 후 망점(640)만 분리되도록, 상기 망점(640)의 크기는 위조방지수단(610)이 이진화되고 라벨링되었을 때 2차원코드를 이루는 다른 부분을 이루는 픽셀 수보다 작은 크기로 된다.20 illustrates an example of an anti-counterfeiting means 610 that is printed and provided on thedocument 600 shown in FIGS. 18 and 19. The anti-counterfeiting means 610 provided in thedocument 600 of the present invention As shown in FIG. 20, a two-dimensional code (eg, a QR code), a plurality ofhalftone dots 640, and anedge 617 surrounding the two-dimensional code are formed. The two-dimensional code has a quadrangular outline and consists of apositioning symbol 611, areference cell 613, and adata area 615. Theedge 617 is printed in a form that is spaced apart from the two-dimensional code to surround the two-dimensional code, amargin area 619 is formed between the two-dimensional code and theedge 617, the plurality ofhalftone dots 640 It is printed in themargin area 619 between the two-dimensional code and theedge 617. The plurality ofhalftone dots 640 are provided in a horizontal and vertical arrangement. Thedot 640 is printed in a pale yellow color such as a mark unique to the securities so as not to be visually identified. When the anti-counterfeiting means 610 is photographed or scanned to become an image, the size of thedot 640 is divided into two-dimensional codes when the anti-counterfeiting means 610 is binarized and labeled so that only thedot 640 is separated after labeling. The size becomes smaller than the number of pixels forming the other part.
상기 테두리(617)도 4각형을 이룬다. 2차원코드를 이루는 위치찾기심볼(611)과 기준셀(613)은 종래 QR코드를 이루는 구성으로서 이에 대한 상세한 설명은 생략한다. 상기 데이터 영역(615)이 일반적으로 문서정보 등과 같은 정보들이 코드화되어 인쇄 영역이 된다.Theedge 617 also forms a square.Positioning symbol 611 and thereference cell 613 forming a two-dimensional code is a configuration forming a conventional QR code, a detailed description thereof will be omitted. In thedata area 615, information such as document information is generally coded into a print area.
본 발명에 따르는 위조방지수단이 구비된 문서(600)에 인쇄되어 구비되는 위조방지수단(610)을 이루는 데이터 영역(615)은 제1 데이터 영역(615-1)과 제2 데이터 영역(615-2)으로 이루어진다. 상기 제1 데이터 영역(615-1)과 제2 데이터 영역(615-2)은 상하로 분할되어 구비될 수 있으며, 상부가 제1 데이터 영역(615-1)이 되고 하부가 제2 데이터 영역(615-2)이 된다.Thedata area 615 constituting the anti-counterfeiting means 610 printed on thedocument 600 provided with the anti-counterfeiting means according to the present invention includes a first data area 615-1 and asecond data area 615-. 2) consists of. The first data area 615-1 and the second data area 615-2 may be divided up and down, and the upper portion becomes the first data region 615-1 and the lower portion includes the second data region ( 615-2).
제1 데이터 영역(615-1)에는 문서정보가 코드화되어 인쇄된다. 문서정보는 문서작성자가 입력한 정보와, 기본 정보로서 문서가 가지고 있는 정보(예, 도 18의 발금기관명, 도 19의 자기앞수표 등)를 포함한다. 문서정보와 여백영역(619)에 인쇄될 복수의 망점(640)의 인코딩 데이터가 해쉬 알고리즘에 의하여 해쉬값으로 생성되고, 생성된 해쉬값은 코드화되어 상기 제2 데이터 영역(615-2)에 인쇄된다.Document information is coded and printed in the first data area 615-1. The document information includes information inputted by the document creator, and information that the document has as basic information (for example, the name of the remittance authority of FIG. 18, cashier's check, etc. of FIG. 19). Document information and encoded data of a plurality ofdots 640 to be printed in theblank area 619 are generated as a hash value by a hash algorithm, and the generated hash value is encoded to be printed in the second data area 615-2. do.
복수의 망점(640)의 인코딩 데이터와 문서정보는 위조나 변조 방지를 보다 확실하게 하기 위하여 문서작성장치의 저장부에 저장되거나 온라인을 통하여 제공받은 암호키에 의하여 암호화되고 해쉬 알고리즘에 의하여 해쉬값이 생성되고 코드화되어 2차원코드의 제2 데이터 영역(615-2)에 인쇄될 수도 있다.Encoded data and document information of a plurality ofhalftones 640 are encrypted by an encryption key stored in a storage unit of a document creating device or provided online to further protect against counterfeiting or tampering, and a hash value is stored by a hash algorithm. It may be generated and coded and printed in the second data area 615-2 of the two-dimensional code.
위조방지수단이 구비된 문서의 생성 방법에 대하여 설명한다.A method of generating a document with anti-counterfeiting means will be described.
도 18 내지 도 20에 예를 들어 도시한 위조방지수단(610)이 구비된 문서(600)는 도 5에 도시한 해쉬 알고리즘과 2차원 코드 생성 기능을 가지는 문서작성장치(110; 예, PC)와 상기 문서작성장치(110)에 연결되어 문서작성장치(110)로부터의 정보를 전달받아 인쇄하는 문서인쇄장치(120; 예, 프린터)로 이루어진 문서 인쇄 시스템(100)에서 인쇄된다. 상기 해쉬 알고리즘과 2차원 코드 생성 기능인 2차원 코드 생성 프로그램은 문서작성장치(110)를 이루는 저장부(도시하지 않음)에 저장되어 실행되거나, 온라인을 통하여 제공되어 실행될 수 있다.Thedocument 600 having the anti-counterfeiting means 610 illustrated in FIGS. 18 to 20 has a hash algorithm and a two-dimensionalcode generation function 110 shown in FIG. 5 (eg, a PC). And adocument printing system 100 connected to thedocument creating device 110 and configured to receive and print information from thedocument creating device 110 to print. The hash algorithm and the two-dimensional code generation program, which is a two-dimensional code generation function, may be stored and executed in a storage unit (not shown) constituting thedocument creating device 110, or may be provided and executed online.
문서 인쇄 시스템(100)을 이루는 문서작성장치(110)에서 작성된 문서는 후술하는 바와 같은 제1 데이터 영역(615-1)과 제2 데이터 영역(615-2)을 가지는 위조방지수단(610)이 문서 정보와 함께 인쇄된다. 위조방지수단(610)은 문서정보가 기재되지 않은 여백 부분에 인쇄된다.The document created by thedocument creating device 110 constituting thedocument printing system 100 is a forgery prevention means 610 having a first data area 615-1 and a second data area 615-2, which will be described later. Printed with document information. The anti-counterfeiting means 610 is printed on the blank portion where document information is not described.
문서 작성자가 문서 작성 중 입력한 문서정보는 인쇄 명령에 의하여 2차원 코드 생성 프로그램이 실행되고 코드화되어 2차원코드의 제1 데이터 영역(615-1)에 인쇄된다. 상기 2차원코드의 제1 데이터 영역(615-1)에는 후술하는 더미 망점 데이터가 코드화되어 문서정보 코드와 함께 인쇄될 수 있다.The document information inputted by the document creator during document creation is executed by a two-dimensional code generation program by a print command, coded, and printed on the first data area 615-1 of the two-dimensional code. In the first data area 615-1 of the 2D code, dummy dot data, which will be described later, may be coded and printed together with the document information code.
2차원 코드와 테두리(617) 사이의 여백영역(619)에 인쇄될 복수의 망점(640)에 대한 망점 데이터는 문서 작성자가 저장 명령을 입력하거나 인쇄 명령을 입력하면 생성되어 저장부에 저장된다.The halftone data for the plurality ofhalftones 640 to be printed in themargin area 619 between the two-dimensional code and theedge 617 is generated when the document creator enters a storage command or a printing command and is stored in the storage unit.
도 21은 도 20에 도시한 여백영역(619; 619-1)에 인쇄된 망점(640)과 망점 데이터의 예를 도시한 것이다. 상기 문서작성장치(110)는 랜덤 함수(Random Function)를 가지며, 상기 망점 데이터는 랜덤 함수에 의하여 생성된다. 도 21의 "A"로 표시한 부분은 랜덤 함수 실행에 의하여 생성된 망점 데이터의 예를 도시한 것으로, 도 21에서와 같이 여백영역(619; 619-1)에서의 각 열에서의 망점 데이터는 "1111111010", "1101011101", "1000101000"으로서 각열의 망점 데이터는 10개의 2진수 조합으로 생성되고 저장부에 저장된다. 이 망점 데이터에 따라 도 20 및 도 21에 도시된 바와 같이 여백영역(619)에 망점(640)이 인쇄된다. 망점(640)은 여백영역의 설정된 위치에 미리 설정된 크기로 인쇄된다. 망점 데이터가 "0"인 위치에는 망점(640)이 인쇄되지 않으며, "1"인 위치에는 망점(640)이 인쇄된다. 상기 망점(640)은 같은 크기로 인쇄될 수도 있으나, 랜덤 함수 실행에 의하여 다른 크기를 가지도록 인쇄될 수도 있다.FIG. 21 shows an example of thehalftone 640 and halftone data printed on theblank areas 619 and 619-1 shown in FIG. Thedocument writing device 110 has a random function, and the halftone data is generated by a random function. A portion indicated by "A" in FIG. 21 shows an example of halftone data generated by execution of a random function. As shown in FIG. 21, halftone data in each column in theblank areas 619 and 619-1 is shown in FIG. The dot data of each column as " 1111111010 ", " 1101011101 " and " 1000101000 " is generated by a combination of ten binary digits and stored in a storage unit. In accordance with this halftone data,halftone dots 640 are printed in theblank area 619 as shown in FIGS. 20 and 21. Thehalftone point 640 is printed in a preset size at a predetermined position of the margin area. Thehalftone 640 is not printed at the position of the halftone data "0", and thehalftone 640 is printed at the position of "1". Thedot 640 may be printed in the same size, or may be printed to have a different size by executing a random function.
한편, 랜덤 함수는 2회 실행되어, 각각 망점 데이터와 더미(Dummy) 망점 데이터가 생성될 수 있다. 망점 데이터와 더미 망점 데이터는 같은 크기를 가지는 2진수 조합으로 생성되고 저장부에 저장된다. 예를 들어 망점 데이터가 "1100100010"과 같이 10개의 2진수 조합으로 생성되면, 더미 망점 데이터도 "0010011000"과 같이 10개의 2진수 조합으로 생성된다. 문서정보와 망점 데이터로부터 해쉬 알고리즘에 의하여 해쉬값이 생성될 때는 "1100100010"와 같은 망점 데이터가 문서정보와 함께 해쉬값으로 생성되나, 여백영역(619)에 인쇄되는 망점(640)의 배열 망점 데이터는 "1110111010"로 되어 여백영역의 망점(640) 배열과 망점 데이터가 일치하지 않게 되어 단순 복사에 의한 위변조가 방지될 수 있다. 망점 데이터와 더미 망점 데이터는 "XOR연산"되어, 서로 값이 같으면 "0"으로 되고, 다른 값이면 "1"로 된다. 해독 과정에서도 XOR 연산이 실행되어 망점 데이터가 확인된다.On the other hand, the random function is executed twice, and the halftone data and the dummy halftone data may be generated, respectively. The dot data and the dummy dot data are generated as a binary combination having the same size and stored in the storage unit. For example, when halftone data is generated by ten binary combinations such as "1100100010", dummy halftone data is also generated by ten binary combinations such as "0010011000". When the hash value is generated from the document information and the dot data by the hash algorithm, the dot data such as "1100100010" is generated as the hash value together with the document information, but the array dot data of thedot 640 printed in theblank area 619 is printed. Becomes "1110111010" so that the arrangement of thehalftone 640 and the halftone data of the blank area do not coincide with each other, thereby preventing forgery by simple copying. The dot data and the dummy dot data are " XOR ", and the value is " 0 " when the values are the same, and " 1 " The XOR operation is also executed during the decryption process to verify the halftone data.
도 22에 도시된 바와 같이 망점 데이터는 문서정보와 함께 해쉬 알고리즘의 실행에 의하여 해쉬값이 생성되고, 생성된 해쉬값은 코드화되어 2차원코드의 제2 데이터영역(615-3)에 인쇄된다. 문서 작성자의 인쇄 명령이 입력되면 해쉬 알고리즘이 실행되어 망점 데이터와 문서정보로부터 해쉬값이 생성되고 저장부에 저장되며, 2차원 코드 생성 프로그램이 실행되어 저장부에 저장된 해쉬값은 코드화되어 제2 데이터영역(615-3)에 인쇄된다.As shown in FIG. 22, a hash value is generated by executing a hash algorithm together with document information, and the generated hash value is encoded and printed in the second data area 615-3 of the two-dimensional code. When the print command of the document creator is input, the hash algorithm is executed to generate a hash value from the dot data and the document information and stored in the storage unit. The two-dimensional code generation program is executed to encode the hash value stored in the storage unit to generate the second data. It is printed in the area 615-3.
위조방지수단이 구비된 문서에 대한 위변조 확인 방법에 대하여 설명한다.It describes a method for checking forgery and alteration for documents provided with anti-counterfeiting means.
위에서 설명한 바와 같은 위조방지수단(610)이 인쇄된 문서(600)는 위조방지수단(610)으로부터 위, 변조되었는지 간단하게 확인될 수 있다. 위변조는 카메라와, 저장부와, 표시창이 구비되고, 2차원코드 리더 프로그램과 해쉬 알고리즘을 가지는 문서 위조 확인 장치에 의하여 실행된다. 문서 위조 확인 장치의 예를 스마트폰을 들 수 있다.As described above, thedocument 600 on which the anti-counterfeiting means 610 is printed may be easily checked whether thedocument 600 has been tampered with. The forgery is performed by a document forgery confirmation device equipped with a camera, a storage unit, and a display window, and having a two-dimensional code reader program and a hash algorithm. A smartphone is an example of a document forgery confirmation apparatus.
위조방지수단(610)이 인쇄된 문서(600)의 위변조 확인 방법은 2차원코드 리더 프로그램이 실행되고 문서에 인쇄된 2차원코드를 포함하는 위조방지수단(610)이 카메라에 촬상되는 위조방지수단 촬상 단계와, 촬상된 위조방지수단(610)을 이루는 데이터 영역의 제1 데이터 영역(615-1)의 코드로부터 문서정보가 획득되고 제2 데이터 영역(615-2)의 코드에서 해쉬값이 획득되는 데이터 획득 단계와, 2차원코드 둘레의 여백영역(619)에 인쇄된 망점(640)으로부터 망점 데이터가 획득되는 망점 정보 획득 단계와, 문서정보와 망점 데이터가 해쉬 알고리즘에 의하여 해쉬값으로 생성되어 저장되는 비교 해쉬값 생성 단계와, 제2 데이터 영역(615-2)의 코드에서 획득되는 해쉬값과 저장부에 저장된 비교 해쉬값이 비교되어 표시창에 디스플레이되는 해쉬값 대비 단계로 이루어진다.The method for checking forgery and alteration of thedocument 600 on which the anti-counterfeiting means 610 is printed is a forgery prevention means in which the anti-counterfeiting means 610 including the 2D code printed on the document is executed and the image is forged into the camera. Document information is obtained from the code of the first data area 615-1 of the data area constituting the imaging step and the image-preventingmeans 610, and a hash value is obtained from the code of the second data area 615-2. The data acquisition step, the halftone information acquisition step of obtaining halftone data from thehalftone dot 640 printed in themargin area 619 around the two-dimensional code, and the document information and halftone data are generated as hash values by a hash algorithm. Comprising a comparison hash value generation step and the hash value obtained from the code of the second data area (615-2) and the comparison hash value stored in the storage unit is compared with the hash value displayed on the display window Lose.
2차원코드 둘레에 인쇄된 망점들로부터 획득되는 망점 데이터와 문서정보가 해쉬 알고리즘에 의하여 해쉬값(이를 "비교 해쉬값"이라 한다)이 생성되고, 이 비교 해쉬값과 제2 데이터 영역(615-2)의 코드로부터 획득된 해쉬값이 표시창에 디스플레이된다. 해쉬값과 비교 해쉬값이 동일하면 위변조가 없는 문서로, 해쉬값과 비교 해쉬값이 서로 다르면 위변조된 문서로 판단된다.Hash values (referred to as " comparative hash values ") are generated by the hash algorithm for dot data and document information obtained from dots printed around the two-dimensional code, and the comparison hash value and the second data area 615- are obtained. The hash value obtained from the code of 2) is displayed on the display window. If the hash value and the comparison hash value are the same, the document does not have a forgery. If the hash value and the comparison hash value are different, the document is judged to be forged.
제1 데이터 영역(615-1)의 코드로부터 문서정보와 더미 망점 데이터가 획득되는 과정과 제2 데이터 영역(615-1)의 코드로부터 해쉬값이 획득되는 과정은 QR코드의 해독과정과 같은 공지 기술이므로 이에 대한 설명을 생략한다.The process of obtaining document information and dummy dot data from the code of the first data area 615-1 and the process of obtaining a hash value from the code of the second data area 615-1 are known as a process of decoding a QR code. Description of the description is omitted.
망점 정보 획득 단계에 대하여 설명한다.The halftone information acquisition step will be described.
상기 망점 정보 획득 단계는 RGB 이미지에서 CMYK 이미지로 변환되는 이미지 변환 단계와, 이미지에서 특정 색상(노란색) 요소를 100%로 하고 나머지 색상 요소를 0%로 하는 색상 선택 단계와, 이진화 단계와, 라벨링 단계와, 망점 픽셀 좌표 추출 단계와, 망점 사이의 최단 거리 추출 단계와, 망점 위치 좌표 추출 단계와, 망점 데이터 획득 단계로 이루어진다.The dot information obtaining step includes an image conversion step of converting an RGB image into a CMYK image, a color selection step of setting a specific color (yellow) element to 100% and a remaining color element to 0% in the image, a binarization step, and labeling And a halftone pixel coordinate extraction step, a shortest distance extraction step between the halftone points, a halftone position coordinate extraction step, and a halftone data acquisition step.
상기 이미지 변환 단계는 위조방지수단(610)의 이미지가 RGB 이미지에서 CMYK 이미지로 변환된다. 상기에서 RGB 이미지에서 CMYK 이미지로의 변환은 촬영되거나 스캔되어 획득된 RGB 이미지를 이루는 각 픽셀의 R, G, B 성분값이 계산 로직을 통하여 C, M, Y로 연산된다. 예를 들면, 아래와 같은 계산 로직을 통하여 연산되어, RGB 이미지에서 CMYK 이미지로 변환될 수 있다.In the image conversion step, the image of the anti-counterfeiting means 610 is converted from an RGB image to a CMYK image. In the conversion from the RGB image to the CMYK image, the R, G, and B component values of each pixel constituting the RGB image captured or scanned are calculated as C, M, and Y through calculation logic. For example, it may be calculated through the following calculation logic to convert from an RGB image to a CMYK image.
float r, g, b;float r, g, b;
k = Math.min(1-r, 1-g, 1-b);k = Math. min (1-r, 1-g, 1-b);
if (k == 1) {c = m = y = 0; k = 1;}if (k == 1) {c = m = y = 0; k = 1;}
else {else {
c = (1 - r - k) / (1 - k);c = (1-r-k) / (1-k);
m = (1 - g - k) / (1 - k);m = (1-g-k) / (1-k);
y = (1 - b - k) / (1 - k);}y = (1-b-k) / (1-k);}
상기에서 r, g, b는 RGB이미지를 이루는 각 픽셀의 r, g, b의 값을 나타내며, c, m, y는 CMYK이미지를 이루는 각 픽셀의 c, m, y 값을 나타낸다.In the above, r, g, and b represent the values of r, g, and b of each pixel of the RGB image, and c, m, and y represent the c, m, and y values of each pixel of the CMYK image.
망점은 육안으로 식별되지 않도록 하기 위하여 유가증권의 고유코드와 같이 옅은 노란색 계통으로 인쇄된다. 색상 요소 선택 단계에서는 변환된 CMYK 이미지를 이루는 각 픽셀에서 Y 성분을 제외한 나머지 성분의 값이 "0"으로 되고, 이진화되면 도 21에 도시된 바와 같은 도트 배열의 이미지가 획득된다.Dotted dots are printed in a pale yellow color, such as securities unique codes, to prevent them from being identified with the naked eye. In the color element selection step, the value of the remaining components except for the Y component is “0” in each pixel of the converted CMYK image, and when binarized, an image of a dot array as shown in FIG. 21 is obtained.
라벨링 단계에서는 이진화 이미지에서 서로 인접하여 연결된 픽셀들이 동일한 번호로 표시되고 저장되며, 동일한 번호로 라벨링된 픽셀 수가 카운트된다. 동일한 번호로 라벨링된 픽셀 수가 설정된 값 이상이면 해당 픽셀의 색상 성분은 "0"으로 되어 망점(640)이 분리된다. 망점(640)이 분리되면, 각 망점(640)을 이루는 픽셀 들의 좌표의 값의 평균값이 연산되어 각 망점(640)의 위치가 연산된다.In the labeling step, pixels adjacent to each other in the binarized image are displayed and stored with the same number, and the number of pixels labeled with the same number is counted. If the number of pixels labeled with the same number is greater than or equal to the set value, the color component of the pixel becomes “0” and thehalftone 640 is separated. When thehalftone 640 is separated, the average value of the coordinates of the pixels constituting eachhalftone 640 is calculated to calculate the position of eachhalftone 640.
각 망점(640)의 위치가 연산되면, 망점(640) 사이의 거리가 연산되고, 연산된 거리 중 최단 거리가 망점 사이의 거리가 된다. 두 망점 사이의 거리가 최단 거리보다 크면, 두 망점 사이의 거리가 최단 거리로 나누어지는 연산이 실행되고, 연산된 결과값으로부터 두 망점과 두 망점 사이의 망점 데이터가 획득된다. 참고로, 두 망점 사이 거리가 최단 거리로 나누어졌을 때, 값이 2이면, 두 망점과 두 망점 사이의 망점 데이터는 "1001"이 된다. 이와 같은 방범으로 망점 데이터가 획득된다.When the position of eachhalftone point 640 is calculated, the distance between halftone points 640 is calculated, and the shortest distance among the calculated distances is a distance between halftone points. If the distance between the two dots is greater than the shortest distance, an operation is performed in which the distance between the two dots is divided by the shortest distance, and the halftone data between the two dots and the two dots is obtained from the calculated result. For reference, when the distance between the two dots is divided by the shortest distance, if the value is 2, the dot data between the two dots and the two dots is "1001". In this way, halftone data is obtained.
지금까지 본 발명에 따른 위변조 방지 기능이 구비된 문서와 유가증권의 생성 방법, 위변조 방지 기능이 구비된 문서와 유가증권의 위변조 확인 방법, 위조방지 수단이 구비된 문서의 생성 방법 및 위변조 확인 방법은 도면에 도시된 실시 예를 참고로 설명되었으나 이는 예시적인 것에 불과하며, 당업자라면 누구든지 이로부터 다양한 변형 및 균등한 다른 실시 예가 가능하다는 점을 이해할 것이다. 따라서, 진정한 기술적 보호 범위는 첨부된 특허청구범위의 기술적 사상에 의하여 정해져야 할 것이다.Until now, the document with a forgery and alteration prevention function and the method of generating securities according to the present invention, the document with the forgery and alteration prevention function and the forgery confirmation method of the securities, the method of generating a document with a forgery prevention means and the method of forgery and alteration Although described with reference to the embodiment shown in the drawings it is merely exemplary, those skilled in the art will understand that various modifications and equivalent other embodiments are possible from this. Therefore, the true technical protection scope should be defined by the technical spirit of the appended claims.