OSError:[Errno 22]使用PyAESCrypt

时间:2019-04-07 03:52:17

标签: python python-3.x

使用PyAESCrypt时遇到问题。无法加密文件。

我到处都是,我无法提出解决方案。

accessKey = "Orion"
print("Enter access key")

if accessKey == input():
    print("Correct")

    print("Enter the path to the file you want to encrypt")
    file_name = input("")

    print("Enter the password you want for the encryption")
    password = input()

    def bufferSize(x, y):
        return x * y

    num1 = int(input("Enter first number: "))
    num2 = int(input("Enter second number: "))
    buffer = (bufferSize(num1, num2))

    pyAesCrypt.encryptFile(file_name, (file_name + ".aes"), password, buffer)


    print(buffer)
    print(password)



else:
    print("Incorrect")
    quit()

期望的输出是一个加密文件,我只是遇到错误。

0 个答案:

没有答案