FIGS. 6A and 6B are a flow chart showing the sequence of steps for secure printing according to another embodiment of the invention in which a hash value is computed for the session identifier, the hash value is encrypted with the session key and sent to the printer.