I am not sure what type of coded hash I am getting back from a postgres database that when queried shows instead a different code.
The question is...
how to convert this hash (as it is returned from Rails):
\x158\x06\xDB\xCD\x13M\xDE\xE6\x9A\x8CR\x04\xE3\x8A\xC8\x04H\xF6#B\xF8\xC2<\xFEK~\xDF
into this (as it shows inside the postgres database):
\x153806dbcd134ddee69a8c5204e38ac80448f62342f8c23cfe4b7edf