A non-transitory computer-readable recording medium storing computer-readable instructions for an image obtaining device,
- the image obtaining device comprising:
- an operation structure;
- a communication interface configured to communicate with a terminal;
- a processor,
- wherein the computer-readable instructions, when executed by the processor, cause the image obtaining device to:
- generate image data based on either of a first obtaining instruction for a pull scan received from the terminal via the communication interface or a second obtaining instruction for a push scan input on the operation structure;
- generate encrypted image data using an encryption key and the image data generated based on the first obtaining instruction;
- transmit the encrypted image data to the terminal via the communication interface;
- transmit the encryption key to the terminal via the communication interface in a first situation;
- transmit the image data generated based on the second obtaining instruction to the terminal via the communication interface;
- and
- wherein the encryption key is not transmitted to the terminal in a second situation different from the first situation,
- wherein the first situation is a situation where the image data is generated based on the first obtaining instruction and the user selects a button in a confirm screen including a device name indicating a device to transmit the encryption key, the button being for the user to agree to transmitting of the encryption key to the device, and
- the second situation is a situation where the image data is generated based on the second obtaining instruction.