Have i been pwned integrated
__________                                                ___
\______   \____    ______ _______  _  __ ____ _______  __| _/
 |     ___/__  \  /  ___//  ___/ \/ \/ // __ \\_  __ \/ __ | 
 |    |    / __ \_\___ \ \___ \ \     /(  \_\ )|  | \/ /_/ | 
 |____|   (____  /____  \____  \ \/\_/  \____/ |__|  \____ | 
               \/     \/     \/                           \/ 
BY: suchsoak
Github: https://github.com/suchsoak       
V.1.0.2                   
[1] Strong
[2] Weak
[3] Have i been pwned
 ....................~~...~. .. 
 ........... .. .~.....  . +~   
 ......... ....~.~. ........~.  
 ...... . ......  ......... .   
 ......~~~~.~~~~......... .~. . 
 ....~~~~~~~~~..~~~~~~  ... . . 
 ..~~~+~~~~~.~~~~~+oooo++~.....
~~~~~~~~~.~.~~~+++ooooo++.....
..~~~~~~~.~~+~+++ooo+++~......
... . ..~~~+++++oo+++.........
.....  . .++++ooo+~. .........
........ . .~++~.. ...........
........... .~.. .............
Have i been pwned
Now the script determines whether the password that was generated regardless of your choice weak or strong, if it has already been leaked on the dark web.
Important
Have mind that for it work you need instal hashlib and requests
 print("Have I Been Pwned")
            Password = Password
            hash_password = hashlib.sha1(Password.encode('utf-8')).hexdigest().upper()
            url = f"https://api.pwnedpasswords.com/range/{hash_password[:5]}"
            req = requests.get(url)
            hashes = req.text.split('\n')
            pwned = False
            for hash in hashes:
                if hash.startswith(hash_password[5:]):
                    pwned = True
                    break
            if pwned:
                print("[!] Yes, your password has been pwned.")
            else:
                print("[!] No, your password has not been pwned.")
            time.sleep(2)[3] Have i been pwned
You can now put an option to verify a specific password of yours that you may or may not have already leaked on the dark web
Strong, Weak or Have i been pwned: 3
            /\   /\                       __ ___                                                            ___
            /  |_|  \_____  ___  __ ____  |__|\_ |__   ____   ____   ____  ______ __  _  __ ____   ____   __| _/
            /         \__  \ \  \/ // __ \ |  | | __ \_/ __ \_/ __ \ /    \ \____ \ \/ \/ //    \_/ __ \ / __ |
            \    _    // __ \_\   /\  ___/_|  | | \_\ \  ___/_  ___/_   |  \|  |_\ \     /|   |  \  ___/_ /_/ |
            \  | |  /(____  / \_/  \___  /|__| |___  /\___  /\___  /___|  /|   ___/ \/\_/ |___|  /\___  /____ |
            \/   \/      \/           \/          \/     \/     \/     \/ |__|                \/     \/     \/
Put your PASSWORD: