Generate md5 password in a script
In my script i want to read a users input for what they want their grub password to be and store in $Password.
Then i need to generate a md5 hash from that password.
Usually you use grub-md5-crypt to generate the hash but that has prompts and i don't know how to handle that in a script. Is their some sort of function i can call and pass in my $Password variable as input?
|