示例#1
0
 def test_ldap_sha1_md5hashing(self):
     """Test LDAP SHA1 hash with md5hashing."""
     hash = str(base64.b64decode(ldap_sha1[5:])).replace("b'", "").replace(
         "\\n'", "")
     res = scraper.md5hashing(self.browser, hash, 'sha1')
     assert res
示例#2
0
 def test_md5_md5hashing(self):
     """Test MDA5 hash with md5hashing."""
     res = scraper.md5hashing(self.browser, md5, 'md5')
     assert res
示例#3
0
 def test_gost_md5hashing(self):
     """Test GOST hash with md5hashing."""
     res = scraper.md5hashing(self.browser, gost, 'gost')
     assert res
示例#4
0
 def test_whirlpool_md5hashing(self):
     """Test WHIRLPOOL hash with md5hashing."""
     res = scraper.md5hashing(self.browser, whirlpool, 'whirlpool')
     assert res
示例#5
0
 def test_ripemd256_md5hashing(self):
     """Test RIPEMD256 hash with md5hashing."""
     res = scraper.md5hashing(self.browser, ripemd256, 'rmd256')
     assert res
示例#6
0
 def test_ripemd320_md5hashing(self):
     """Test RIPEMD320 hash with md5hashing."""
     res = scraper.md5hashing(self.browser, ripemd320, 'rmd320')
     assert res
示例#7
0
 def test_sha512_md5hashing(self):
     """Test SHA512 hash with md5hashing."""
     res = scraper.md5hashing(self.browser, sha512, 'sha512')
     assert res
示例#8
0
 def test_ripemd128_md5hashing(self):
     """Test RIPEMD128 hash with md5hashing."""
     res = scraper.md5hashing(self.browser, ripemd128, 'rmd128')
     assert res
示例#9
0
 def test_sha384_md5hashing(self):
     """Test SHA384 hash with md5hashing."""
     res = scraper.md5hashing(self.browser, sha384, 'sha384')
     assert res
示例#10
0
 def test_sha256_md5hashing(self):
     """Test SHA256 hash with md5hashing."""
     res = scraper.md5hashing(self.browser, sha256, 'sha256')
     assert res
示例#11
0
 def test_sha1_md5hashing(self):
     """Test SHA1 hash with md5hashing."""
     res = scraper.md5hashing(self.browser, sha1, 'sha1')
     assert res
示例#12
0
 def test_ldap_md5_md5hashing(self):
     """Test LDAP MD5 hash with md5hashing."""
     hash = str(base64.b64decode(ldap_md5[5:])).replace("b'", "").replace(
         "\\n'", "")
     res = scraper.md5hashing(self.browser, hash, 'md5')
     assert res == 'password'
示例#13
0
 def test_ripemd160_md5hashing(self):
     """Test RIPEMD160 hash with md5hashing."""
     res = scraper.md5hashing(self.browser, ripemd160, 'rmd160')
     assert res == 'password'