Patent ID: 8347406

Claim:
An image processing apparatus comprising: at least one processor configured to control: a generation unit configured to scan a document to generate an original image; a decoding unit configured to decode a two-dimensional code on the original image generated by the generation unit to obtain original information; a determination unit configured to determine whether the original information obtained in the decoding unit contains information indicating a password; an authentication information determination unit configured to determine whether the original information contains authentication information indicating whether input of the password is required to permit sending of an unencrypted electronic file generated from the original image; a password receiving unit configured to receive a password input by a user; and a conversion unit configured to in a case where the determination unit determines that the original information contains the information indicating the password convert the original image generated by the generation unit into an electronic file that is encrypted by applying the information indicating the password, if the authentication information determination unit determines that the authentication information requires input of the password to permit sending of the unencrypted electronic file, and no password is received by the password receiving unit, convert the original image generated by the generation unit into an electronic file without encrypting by applying the information indicating the password, if the authentication information determination unit determines that the authentication information requires input of the password to permit sending of the unencrypted electronic file, and the password is received by the password receiving unit, and convert the original image generated by the generation unit into an electronic file without encrypting by applying the information indicating the password, if the authentication information determination unit determines that the authentication information does not require input of the password to permit sending of the unencrypted electronic file, and in a case where the determination unit determines that the original information does not contain the information indicating the password convert the original image generated by the generation unit into an electronic file without encrypting by applying the information indicating a password; and a sending unit configured to send the electronic file obtained by the conversion in the conversion unit.