2

I have some string, lets say string = "abcd4345.345rg" and I am looking for simple python module which will allow me to encrypt/descrypt it using some key (AES for example).

I am writing this question because I can't find any module in django for this - I found only hashing functions. I need one small module with function like encrypt(data,key)/decrypt(data,key) nothing more.

1
  • Do you need a symmetric algorithm? Commented Dec 14, 2012 at 16:29

1 Answer 1

3

You didn't specify if you need symmetric or asymetric algorithms. Anyway, you can check python crypto docs (hmac can be a good asymmetic/public-key option):

http://docs.python.org/2/library/crypto.html

And PyCrypto for AES:

https://www.dlitz.net/software/pycrypto/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.