Adding new functions for secret key generation and parsing the date.
Fixing the create_key call, there was some typos overriring the params.