在 python 中加密,输出是一个字符

Encryption in python that the output is one char

我正在寻找 UDP 的对称加密。 所以我明白我可以使用凯撒加密,但它太弱了。 所以现在我需要 python 中的对称加密来加密一个字符,并且此加密的输出是一个字符。 感谢您的帮助!

看起来你在找这个:

https://pycryptodome.readthedocs.io/en/latest/src/cipher/aes.html