Simple function to encode string using secret and return hex string
For usage see doc comment in lib.rs