Secure Your Current Password Using Python

Secure Your Current Password Using Python

  • In this program we learn how to write a code secure your current password using python.

Source Code:

#Follow @Programmerfect

SECURE = (("s", "$"),("and", "&"),("a","@"),("o","0"),("i","!"))

def securePassword(password):
    for a, b in SECURE:
        password = password.replace(a,b)
    return password

if __name__ == "__main__":
    password = input("Enter your password: ")
    print(f"Your new secure password: {securePassword(password.lower())}")



Comments