Convert binary data to hexadecimal in a shell script March 1, 2023 by Tarik Perhaps use xxd: % xxd -l 16 -p /dev/random 193f6c54814f0576bc27d51ab39081dc