Beispiel #1
0
def main(mode):
    if(mode=='Cryptage/Decryptage symetrique'):
        SymmetricEncryption.menu()
    if(mode=='Codage'):
        Encoding.menu()
    if(mode=='Hachage'):
        Hashing.hash_menu()
    if(mode=='Cracker mot de passe'):
        Hashing.crack_menu()
    if(mode=='Cryptage/Decryptage asymetrique'):
        AsymmetricEncryption.menu()


    if(mode=='rien'):
        menu()
Beispiel #2
0
def menu():
    while(True):
        choice = pyip.inputMenu(['Codage','Hachage','Cracker mot de passe','Cryptage/Decryptage symetrique','Cryptage/Decryptage asymetrique','Quitter'])
        if(choice=='Codage'):
            Encoding.menu()
        elif(choice=='Hachage'):
            Hashing.hash_menu()
        elif(choice=='Cracker mot de passe'):
            Hashing.crack_menu()
        elif(choice=='Cryptage/Decryptage symetrique'):
            SymmetricEncryption.menu()
        elif(choice=='Cryptage/Decryptage asymetrique'):
            AsymmetricEncryption.menu()
        
        elif(choice=='Quitter'):
            return
Beispiel #3
0
def menu():
    while (True):
        choice = pyip.inputMenu([
            'encoding', 'hashing', 'pwdCracker', 'symmetric-encrypt',
            'asymmetric-encrypt', 'quit'
        ])
        if (choice == 'encoding'):
            Encoding.menu()
        elif (choice == 'hashing'):
            Hashing.hash_menu()
        elif (choice == 'pwdCracker'):
            Hashing.crack_menu()
        elif (choice == 'symmetric-encrypt'):
            SymmetricEncryption.menu()
        elif (choice == 'asymmetric-encrypt'):
            AsymmetricEncryption.menu()

        elif (choice == 'quit'):
            return
def main(mode):
    """
        -----------------------------------------------------------------------
        --------------------------Security Project-----------------------------
        -----------------------------------------------------------------------
        The first menu does the following : encode and decode a given text to 
          various types of encoding utf8, ascii, base16, base32, base64        
        -----------------------------------------------------------------------

    """
    if (mode == 'Cryptage/Decryptage symétrique'):
        SymmetricEncryption.menu()
    if (mode == 'Codage'):
        Encoding.menu()
    if (mode == 'Hachage'):
        Hashing.hash_menu()
    if (mode == 'Cracker mot de passe'):
        Hashing.crack_menu()
    if (mode == 'Cryptage/Decryptage asymétrique'):
        AsymmetricEncryption.menu()

    if (mode == 'rien'):
        menu()