Answer the question
In order to leave comments, you need to log in
Shell, replacing all characters in a string with their codes?
Hey!
Tell me, who knows how to replace all the characters of a string with their codes or some kind of hash, using shell commands.
Here is an example:
At the input
> hello world
And at the output, something like
> h2dfde3r443332d
$ perl -e 'print crypt("hello world", "a3")'
The crypt() function is unimplemented due to excessive paranoia. at -e line 1.
Answer the question
In order to leave comments, you need to log in
If a hash is needed:
$ echo "hello world" | md5sum
6f5902ac237024bdd0c176cb93063dc4 -
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question