When data is stored, locally or centrally, the way the data is stored is important. Personal, sensitive or medical data need to be stored securely, meaning encryption.

To store data securely, you need to implement:

 

OWASP has a cryptographic storage cheat sheet where you can learn more about the rules we listed above.

On a mobile application, you must ensure that encryption keys are stored in the keychain and that the mobile device is able to do encryption. Most of the time, a device access code is needed to enable encryption on a mobile device.