Password hashing method and apparatus

Password hash apparatus, SHA (Secure Hash Algorithm) has a hardware structure that can provide all of the -1 hash operation and SHA-256 hash operation. These hashed passwords device, one memory and one of the first register, a first plurality of message data corresponding to the first round of plural upon SHA-1 hash operation using one XOR logical operator, and a logical operator of generating and SHA-256 hash operation when to generate a second plurality of message data corresponding to a plurality of the second round, SHA-1 hash operation when a plurality of the first message digest with the message data according to the SHA-1 hash operation the output, and by using a second plurality of message data when SHA-256 hash operation to calculate a message digest according to the SHA-256 hash operation. SHA (Secure Hash Algorithm) -1, SHA-256, password, (Trusted Computing Group) TCG