Forum Moderators: coopster
sha1sum --string=12345
--stringswitch you still echo, you just need to remove newlines from the echo command.
-nswitch that tells the command "do not output the trailing newline" which is currently part of the piped input to your sha1sum command causing your unexpected digest output.
man echofrom your command line to see more information on using the echo command line utility on unix.
printf 12345 | sha1sum