An image forming apparatus has a micropattern reading unit, an encoded
image generating unit and a code printing control unit. The micropattern
reading unit reads a micropattern of a sheet. The encoded image
generating unit generates an encoded image. The encoded image has the
micropattern and a private key of a user. The code printing control unit
prints the encoded image on the sheet to produce a certificate sheet.