\PhpOffice\Common\Tests\MicrosoftPasswordEncoderTest

Test class for PhpOffice\Common\PasswordEncoder

Summary

Methods
Properties
Constants
testEncodePassword()
testEncodePasswordWithSalt()
testDefaultsToSha1IfUnsupportedAlgorithm()
testEncodePasswordWithNullAsciiCodeInPassword()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

testEncodePassword()

testEncodePassword() 

Test that a password can be hashed without specifying any additional parameters

testEncodePasswordWithSalt()

testEncodePasswordWithSalt() 

Test that a password can be hashed with a custom salt

testDefaultsToSha1IfUnsupportedAlgorithm()

testDefaultsToSha1IfUnsupportedAlgorithm() 

Test that the encoder falls back on SHA-1 if a non supported algorithm is given

testEncodePasswordWithNullAsciiCodeInPassword()

testEncodePasswordWithNullAsciiCodeInPassword() 

Test that the encoder falls back on SHA-1 if a non supported algorithm is given