Removed base64 encode of output due to it being totally wrong.
Interm solution is hex encoding