Password generator
Junhao / November 2023 (63 Words, 1 Minutes)
LLM Powered Password generator
Great ideas are born out of boredom. The idea of building a password generator is conceived in the toilet while I was going about my daily business. Although this idea is not great by any measure, it is an interesting one to work on. Simple enough develop while working with langchain.
So what is this password generator? What is it trying to solve. Will it be usefull?
Inspiration:
WINDOWS: Please enter your new password.
USER: cabbage
WINDOWS: Sorry, the password must be more than 8 characters.
USER: boiled cabbage
WINDOWS: Sorry, the password must contain 1 numerical character.
USER: 1 boiled cabbage
WINDOWS: Sorry, the password cannot have blank spaces.
USER: 50bloodyboiledcabbages
WINDOWS: Sorry, the password must contain at least one uppercase character.
USER: 50BLOODYboiledcabbages
WINDOWS: Sorry, the password cannot use more than one uppercase character consecutively.
USER: 50BloodyBoiledCabbagesYouStupidIdiotGiveMeAccessNow!
WINDOWS: Sorry, the password cannot contain punctuation.
USER : IWillHuntYouDown50BloodyBoiledCabbagesYouStupidIdiotGiveMeAccessNow
WINDOWS: Sorry, that password is already in use.
My Take of a good password
A good password must be strong yet easy to rememeber. Weak: Password Strong: GrMcS1MmVh!
How is the second password easy to remember? Mnemonic (G)ordon (r)amsey (M)aster (c)hef (S)eason (1) (M)akes (m)e (V)ery (h)ungry
Implementation
- Choose a Topic or memorable code that is relatable
- Ask LLM to come up with a mnemonic
- Throw in some random mutation. e.g. Letter O to 0, A to 4 etct
- Add in some punctuations strategically