在使用pcryptodome的时候,发现了一个错误:

加密:python crypto AES : Object type cannot be passed to C code

Python之AES加密:
本人电脑上的加密库的版本和别人电脑上的版本不一样,我电脑加密内容需要是字节, 修改了一下。 修改之后如下:

self.key = key

修改为:self.key = key.encode("utf-8")

 加密:python crypto AES : Object type cannot be passed to C code

 

Test :

加密:python crypto AES : Object type cannot be passed to C code

加密:python crypto AES : Object type cannot be passed to C code

 呼呼~~~

Game Over~~~

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
相关资源
相似解决方案