简体   繁体   中英

Passay generate password that is not an old one

I know that is possible to validate a password with passay that makes sure the validated one is not one of a given list of old passwords

passwordData.setPasswordReferences(..)

I see that password generation method only requires CharacterRule objects, so I was wondering if there is a way to make sure the generated password is not an old one, even though the odds are pretty low I guess.

It's doesn't seem to be possible, the CharacterRules only allow inclusion, not exclusion. You might want to validate the generated pw and retry.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM