Refactored existing code and added support for symmetric encryption.

docs/secret.rst does not exist in this PR