Of course, if you're just looking for a fun programming exercise, then don't let me stop you :)
echo xyz|od -An -tx1|xxd -p -r