Hashing Passwords Using the RSA SHA-1 Algorithm

The following procedure describes how to run the hashpwd.exe utility using the default password hashing algorithm, RSA SHA-1.

To hash passwords using the RSA SHA-1 algorithm

  • To hash a password using the RSA SHA-1 algorithm, run the hashpwd.exe utility using one of the following syntaxes:

    • To hash individual passwords, use the following syntax:

      hashpwd password1 password2 ... 
      hashpwd -a rsasha1 password1 password2 ...
    • To hash individual passwords and generate salt values for each password, use the following syntax:

      hashpwd -a rsasha1 -s salt_length password1 password2 ...

      where salt_length specifies the length, in bytes, of the salt value. Enter a value between 1 and 16. For example, for the clear text password, PassWord02, the hash values generated by the hashpwd.exe utility using the default rsasha1 option are as follows:

      Salt : HyviRlb2yP
      Password: UctMxQ+DoRlQZgiHIl7ghDy1bJM=
    • To hash multiple passwords using a batch file, enter the passwords into a batch file (for example, the file might be named passwords.txt), and then specify the filename using the following syntax:

      hashpwd @password_file_name