A method for secure transmission of information from a digital pen to a
receiving device is provided. The method includes obtaining, in the
digital pen, a message in the form of a plurality of position indications
recorded from a position code on a substrate; sending at least one of the
position indications to a database device; receiving from the database
device an address of a receiving device which is associated with the at
least one position indication and an encryption key relating to the
receiving device, the encryption key being associated with the at least
one position indication; encrypting the message using the encryption key
received from the database device; and transmitting the encrypted message
to the address of the receiving device.