Hi Nghia,

The common pattern is to extend django.contrib.auth.models.User by creating 
your own "profile" model with the fields you need [1].  Then you can set the 
AUTH_PROFILE_MODULE setting and access the profile from User objects through 
the User.get_profile method.  The Python standard library has modules related 
to encryption [2].

  1.  
https://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users
  2.  http://docs.python.org/library/crypto.html

Hope that helps,

Brett

From: Le Huu Nghia <lehuunghi...@gmail.com<mailto:lehuunghi...@gmail.com>>
Reply-To: <django-users@googlegroups.com<mailto:django-users@googlegroups.com>>
Date: Wed, 5 Oct 2011 19:34:39 +0800
To: <django-users@googlegroups.com<mailto:django-users@googlegroups.com>>
Subject: encrypt and decrypt data in django.

Dear All,

i want to create a table to store information of user ,
That includes (username , password, .......)  this table must be diffrent from 
admin table.
(ex some personal info so on)

can you give me an advice which lib of django to encrypt and decrypt , look 
like the table admin of django.

Thanks a lot.
Nghia


--
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@googlegroups.com>.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@googlegroups.com>.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to