예제 #1
0
파일: config.py 프로젝트: afcarl/passacre
 def generate_for_site(self, username, password, site, override=()):
     config = self.get_site(site, password)
     if override:
         config.update(override)
         for k, v in list(config.items()):
             if v is None:
                 del config[k]
         self.fill_out_config(config)
     return generator.generate(username, password, site, config)
예제 #2
0
 def generate_for_site(self, username, password, site, override=()):
     config = self.get_site(site, password)
     if override:
         config.update(override)
         for k, v in list(config.items()):
             if v is None:
                 del config[k]
         self.fill_out_config(config)
     return generator.generate(username, password, site, config)
예제 #3
0
def test_scrypt_vectors(username, password, site, options, expected):
    options = dict(options, multibase=hex_multibase)
    assert generator.generate(username, password, site, options) == expected
예제 #4
0
def test_scrypt_vectors(username, password, site, options, expected):
    options = dict(options, multibase=hex_multibase)
    assert generator.generate(username, password, site, options) == expected