Encrypting secret key upon creation

- Encrypting the secret key upon creation with the master key.
- Added `IOError` exception catching when trying to read the
`credentials.xml` file.