Chapter 7. Manipulating Data
Every application uses data, and we need to manipulate that data from one form to another. This chapter offers several topics on data transformation in areas such as secret management, JSON serialization, and XML serialization.
Secrets are data, such as passwords or API keys, that we don’t want to expose to 3rd parties. This chapter has three sections on managing secrets for hashing, encryption, and hidden storage.
Much of the data we work with today is in JSON format. Basic serialization/deserialization is simple in modern frameworks and it’s even simpler when you own both the data consumer and provider. The fact is that when consuming 3rd party data, you don’t have control over the consistency or standards of the data. That’s why the JSON sections of this chapter drill down on customizations to help you handle JSON in whatever format you need.
Finally, although JSON has a dominant place among Internet data format today, there’s still plenty of XML data to work with, which is the subject of the XML sections. You’ll see another flavor of LINQ, called LINQ to XML, which gives you full control over the serialization/deserialization process.
7.1 Generating Password Hashes
You need to securely store ...