Easy to use Python encryption library/wrapper?
问题 I want to encrypt an arbitrary-length string with a password in Python. I would prefer not to deal with padding, key generation and IVs as I honestly don't know that much about cryptography yet and I'd like to avoid messing up. I'd also prefer using a well-known cypher as AES. My ideal library (let's call it MagicCrypt) would work like this: from MagicCrypt import AES p = "plaintext" k = "password" crypt = AES(k) c = crypt.encrypt(p) p == crypt.decrypt(c) # True I've checked PyCrypto,