Please,
please, if you're going to go into anything related to security, read up on the subject. It's ok to do things like to learn, but putting them into production is unwise. See, for example,
https://www.schneier.com/crypto-gram/archives/1998/1015.html... and read up, with books like
Applied Cryptography. Read a few DefCon papers or videos.