You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 regels
448 B

  1. var text = require('./text');
  2. var passwordGenerator = require('./password-generator');
  3. module.exports = {
  4. createPassword: createPassword,
  5. createMasterPassword: passwordGenerator.createMasterPassword
  6. };
  7. function createPassword(masterPassword, entry) {
  8. var hash = passwordGenerator._createHash(masterPassword, entry);
  9. var template = passwordGenerator._getTemplate(entry.password.settings);
  10. return text._encode(hash, template);
  11. }