Refactored existing code and added support for symmetric encryption.

Package auth -> Package httpsign