def cipher(password,offset): result = "" for i in range(len(password)): char = password[i]

    if (char.isupper()):
        result += chr((ord(char) + offset - 65) % 26 + 65)
    else:
        result += chr((ord(char) + offset - 97) % 26 + 97)
return result

Built With

Share this project:

Updates