>> Who may help me to design a software? I want an account number, the >> password producer (because I do not have means to think of quite good >> account number password) > > If I understand you correctly, I think you're looking for a random > password generator. Just search Google for "random password generator". > > Here's a Python example, if that's what you're looking for: > > <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/59873>
Or, if you're away from the web, you can use the same code that already exists in Django's User.objects.make_random_password() method: def make_random_password(self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789'): "Generates a random password with the given length and given allowed_chars" # Note that default value of allowed_chars does not have "I" or letters # that look like it -- just to avoid confusion. from random import choice return ''.join([choice(allowed_chars) for i in range(length)]) Incidentally, other than the letter "Q", the uppercase portion of the default allowed_chars is the same set of characters allowed in a VIN (Vehicle Identification Number, found in several places such as the dash and door-frame on cars at least in the US) for exactly the same reason...1/i/l look alike as do 0/O/Q useless trivia for today :) -tim --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---