Monday, September 28, 2020

Linux Generate md5 from command line

`echo` would always return with trailing new line char, therefore pass `-n` to
neglect the newline. And so md5sum would received a text from pipe with `-t`
option

 $ echo -n 123456 | md5sum -t

e10adc3949ba59abbe56e057f20f883e  -

Have fun ^^

No comments: