Secret Key Generator

Security Issue, please merge into master.

P.S. Sorry about the last two pull requests. This is my first pull request so there were many problems I faced. 
Thanks and sorry for the inconvenience. Just want to help and learn.