Listing für Passworteingabe

Zurück zur Hauptseite

                                                                         


zurück zur Übersicht

zurück zum Text

Download des Moduls


# eigenes Password prüfen, ohne dass es im Quelltext steht

from rotor import *

result = 'result'

def pw():
    print "geb Sie Ihr Passwort ein!"
    a = raw_input("% ")
    c = newrotor(a)
    z = c.decrypt('\x88\xb0\xcd!\xb1\x0b')
    return z

if pw() == result:
    print 'alles ok!'
else:
    print 'Eindringling!'