예제 #1
0
def main():

    e = Encryptor.EncryptorA("how old is my computer")
    d = Decryptor.DecryptorA("how old is my computer")

    print(time.time())
    flag = e.encrypt("e:\\k.jpg", "e:\\k99.jpg")  #("e:\\b.mp4", "e:\\b99.mp4")
    print(time.time())

    if flag == 3:
        flag = d.decrypt("e:\\k99.jpg",
                         "e:\\kagain.jpg")  #("e:\\b99.mp4", "e:\\bAgain.mp4")
        print(time.time())
        if flag == 3:
            print("DONE")
def main():

    e = Encryptor.EncryptorA("Cryptography using armstrong number")
    d = Decryptor.DecryptorA("Cryptography using armstrong number")

    print(time.time())
    flag = e.encrypt("e:\\photo.jpg",
                     "e:\\tmp.jpg")  #("e:\\b.mp4", "e:\\b99.mp4")
    print(time.time())

    if flag == 3:
        flag = d.decrypt("e:\\tmp.jpg",
                         "e:\\new.jpg")  #("e:\\b99.mp4", "e:\\bAgain.mp4")
        print(time.time())
        if flag == 3:
            print("DONE")