O'Reilly logo

iOS Programming Cookbook by Hossam Ghareeb

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Encryption

In the preceding section, we saw how to save data securely in Keychain. However, when saving information in Keychain or wherever you want, there is a chance that someone can get this information and that it will be exposed. The best practice when saving any sensitive information in your app or in the server side is for it to be encrypted and, when someone sees the encrypted message, they should not be able to decrypt it again. In this section, we will talk about the cryptographic hash functions.

Getting ready

The cryptographic hash function is a special type of hash function that can be used in cryptography. Using this hash function, you can convert any data (message) to another form of data (digest). These hash functions are meant to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required