ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Gleb Kulikov <glebus@asd.iao.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Учетные записи без пароля. Как?
Date: Fri, 25 Sep 2009 17:20:28 +0700
Message-ID: <200909251720.28723.glebus@asd.iao.ru> (raw)
In-Reply-To: <200909232015.55614.haw@inbox.ru>

В сообщении от [23 сентября 2009 Владимир] написал:

> > А есть генерилки, которые генерят пароли, легко запоминаемые визуально
> > на клавиатуре?
> > Какие-нибудь типа bnhytrfv или там ftgbvcxdr (часть заглавными,
> > см.расположение на клавиатуре)
>
> генерилок нету, зато есть подбиралки.

Ну почему же... Я делаю так (код ниже.) Результат вполне мнемоничен... хотя 
да, стойкость под сомнением, я не анализировал. Получается безобразие типа 
vepe-ire5762   @agilo-o8382    *amizatu3083

class PASSGEN:
    
    def __init__(self, pslen = 8):
        self.rng = Random()
        righthand = '!@%*123456qwertasdfgzxcvbQWERTASDFGZXCVB'
        lefthand = ';:"789yuiophjknmYUIOPHJKLNM'
        
        self.vowels = ('b;df-ghk@lmnpr-stv!wz*', 'aeiou')
        
        self.allchars = righthand + lefthand
        
        self.passwordLength = pslen
    
    def Get(self, pslen = None):
        s = ''
        if pslen == None:
            pslen = self.passwordLength
        for i in range(pslen):
            s = s + rng.choice(self.allchars)
        return s
    
# --------------------------------------------------------------------------
    
    def GetMnemonical(self, pslen = None, digits = 4):
        """
            генерируем мнемонический пароль
            
            @return "pass"
        """
        if pslen == None:
            pslen = self.passwordLength
        
        s = ''.join([choice(self.vowels[i % 2]) for i in range(pslen)])
        s += ''.join([str(randrange(0, 9)) for i in range(digits)])
        
        return s




-- 
      Салют, /GLeb

UIN: 15341920
jabber://gleb@asd.iao.ru
sip://2387245@sipnet.ru			(telephony)
skype://gleb_kulikov.tomsk		(telephony)
sip://20000204@sip.pctel.ru		(telephony)
netmail: 2:5005/78

  parent reply	other threads:[~2009-09-25 10:20 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-18  8:57 Денис Черносов
2009-09-18  9:26 ` Yura Kalinichenko
2009-09-19 11:29 ` Michael Shigorin
2009-09-19 11:33 ` Max Ivanov
2009-09-19 11:57   ` Michael Shigorin
2009-09-19 12:45     ` Dmitry Tabunov
2009-09-19 15:41       ` Michael Shigorin
2009-09-21 17:07         ` Anton Farygin
2009-09-22  4:14           ` Rinat Bikov
2009-09-22  6:14         ` Денис Смирнов
2009-09-22  6:43         ` Dmitry Tabunov
2009-09-22 13:07           ` Michael Shigorin
2009-09-22 16:06             ` Dmitriy Kruglikov
2009-09-23  8:25               ` Dmitry Tabunov
2009-09-23 10:54             ` Денис Смирнов
2009-09-23 11:02               ` AShen
2009-09-23 12:05               ` Michael Shigorin
2009-09-23 12:15                 ` Max Ivanov
2009-09-23 13:02                 ` Timur Batyrshin
2009-09-23 16:15                   ` Владимир
2009-09-24  6:17                     ` Timur Batyrshin
2009-09-24  6:26                       ` AShen
2009-09-24  6:42                         ` Timur Batyrshin
2009-09-24  6:45                         ` Dmitriy Kruglikov
2009-09-24  8:00                           ` Andrey Rahmatullin
2009-09-24  8:16                             ` Dmitriy Kruglikov
2009-09-24 11:06                           ` Денис Черносов
2009-09-25 10:20                     ` Gleb Kulikov [this message]
2009-09-22  7:09         ` Sergey
2009-09-23  6:17         ` Andrey Kuleshov
2009-09-24 11:15 ` Алексей Шенцев
2009-09-24 11:40   ` Денис Черносов
2009-09-24 11:52 ` Sergey V Turchin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200909251720.28723.glebus@asd.iao.ru \
    --to=glebus@asd.iao.ru \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git