reading and editing registry

I want to add some security features to my program. Is there any way that I can write a randomly generated number to the registry of a PDA and then later read that same value at startup?
 
Top