Consider a password hash function that works as follows on a
Consider a password hash function that works as follows on a system where the password must contain only letters: Step 1. Take each letter in the password and replace it with a number representing its place in the alphabet Step 2. Take each number from step 1, multiply it by 2, and add 1. Step 3. Combine the resulting numbers, seperated by 0s, into a single string. This string is the encrypted password. A) Given the user password \"user\", what would this hashing algorithm produce as the final encrypted password? B) Comment on this hashing algorithm in terms of the security it provides for user passwords.
Solution
A)For user first step is to get u-21, s-19,e-5,r-18 So it will make 21 19 5 18. In step two, it will give 43 39 11 37. Now final step 3 will make it 43039011037.
User is encrypted to 43039011037.
B) For a normal purpose this looks like a very good hashing algorithm
