redacted / XKCD-password-generator

Generate secure multiword passwords/passphrases, inspired by XKCD
BSD 3-Clause "New" or "Revised" License
1.32k stars 185 forks source link

Add try..except to fix math domain error #137

Closed VivekThazhathattil closed 1 year ago

VivekThazhathattil commented 3 years ago

Fix for math domain error in acrostic verbose mode. The error occurs in cases where none of the characters in the acrostic are in the word dict, and hence length becomes 0 and fails at bits = math.log(length, 2).