You can look through the hash_password method in the model to see how the encryption is done.
If using stored salts it generates a random salt and then stores that in the users row and then does an sha1 encryption with the salt and the password. But just look through that method for the exact algorithm.