A smartcard has its own operating system, and communicates with it via a card reader. The smartcard also has its own file system, in which the operating system can protect files by means of encryption, passwords or PIN codes. Smartcards frequently have a set of keys suitable for use as digital signatures. The keys can also be used for encrypting data.