Refactored existing code and added support for symmetric encryption.

how about  `fmt.Println(hexDigest)`?