From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.help Subject: Re: Noob dumb question (extending emacs) Date: Mon, 25 Oct 2021 22:44:46 +0300 Message-ID: References: <87y26kkuag.fsf@web.de> <875ytnucjn.fsf@web.de> <87sfwqre9e.fsf@web.de> <8735opa2e8.fsf@web.de> <874k95wirz.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23372"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.7+183 (3d24855) (2021-05-28) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 25 21:54:02 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mf62i-0005mo-Uq for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 25 Oct 2021 21:54:01 +0200 Original-Received: from localhost ([::1]:51962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mf62h-0006CV-SR for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 25 Oct 2021 15:53:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48878) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mf5uo-0005am-F9 for help-gnu-emacs@gnu.org; Mon, 25 Oct 2021 15:45:50 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:51073) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mf5ul-0002m2-Pd for help-gnu-emacs@gnu.org; Mon, 25 Oct 2021 15:45:49 -0400 Original-Received: from localhost ([::ffff:41.75.189.151]) (AUTH: PLAIN admin, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 0000000000027F1D.0000000061770968.0000447E; Mon, 25 Oct 2021 12:45:44 -0700 Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <874k95wirz.fsf@zoho.eu> Received-SPF: pass client-ip=217.170.207.13; envelope-from=bugs@gnu.support; helo=stw1.rcdrun.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, LOTS_OF_MONEY=0.001, MONEY_FROM_41=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:134156 Archived-At: * Emanuel Berg via Users list for the GNU Emacs text editor [2021-10-25 12:35]: > I can put 500 000 USD I'm right ... Password generation is used by single individuals who get help with password, sometimes password is too long and has to be shortened, and user can always insert something in the generated password. It is help to quicker generate a secret token. None of passwords so far generated are not same and practically they are not predictable. Theoretically yes. Entropy can be generated by providing something random that computer did not generate. /dev/urandom I would not know how to read from Emacs Lisp, as it is not regular file. Maybe as stream, don't know now. Then I can read my own files and generate md5sum: (defun rcd-random-string-from-home () (md5 (car (directory-files (getenv "HOME") t (rcd-password-generate-alpha-1))))) (dotimes (a 100) (insert (rcd-password)) (insert "\n")) That gave me enough randomity and none of passwords is same in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cGqa WCDuh}z0H%zDUPr4uVFQ W|YFhDhhiCG05tdks{CE Y2iuGWzAE8lmh[}GUgBO ZYJ|IdZWMZUz4Uw&ZgBu ZdOHAeiiSI[fH}J0P2AH ZhIIO^JklzoUj91i=hsa aJlb3n^W|hhUPlkNA8op b8Rklz-PvNTnjrwTOY-D baVKIWl8}upUJh!JTAyc caN$oyzqi*nRgItjf63i d*HqgFrLtEq9RsZi{WRE dkcWP7YUbaZlSzSHIO%# dnFHjo1TaCbHL5LE%mty e1YU%bNKLVThTe9KB@fI eHCkAQd]ytHqwM{0VC0S eHfnooy*#eZklZ0HkVDW f$ou22RgLlVHv_vTGYrI gaglUNKvG4+Fv7Wf%zfS hGs3DV9JjWyuYlP#G_Vp hR{9hByHfd)MYZQWqr3H hT2JVpNVC&zuPvJmDu-n hZT2s5emDisVyC$Ssad[ h]hTUdArzPd&3dQYtFDC hboJqzgw&jTB*MgAAH8Y hc@&HhFfHtbWhjh1TRnt idf1#jdGMRpLwNSq8Teh iiuLvDi(BCyn7EoN_ugp jDz0YulHCNaRC@V)SWVO jO7ibrIw[cThAIOBcN&P kkBIb9HCSCSw$QeZ3CmK l5qyK|JPrRujIIb*kO9n lRbrKhV5!hOHM=dn1iQL lSiJwsojB)dASLNUQ7w_ n)dDG8HyBQCZM*A7GycJ oVuvb+7D*NmVWvPBHhwB oWB0ZDjFrkeh6VsZ#NN] ok0PjCr!lCTzPNLEgJ=7 qjhi{Zl1nbhje4&AJHZl rB#JsVG7tlEHEGg1jZTW rwzMdQpmON*hWH9N+Z8B sRe{0dTThM3S@ZbWzcWP tyPTypq4f@4eBqce#ICB uggVuZihhgUEp*(1ewBz vTNkMuHT1@HE4dAd_ugm vh5vw=*5AgbUYUnhbeCa y%e{2NWIKgdJKACWhSLu yhegcG{jUkz23!NZddbR ypDSHnWYDP0R(YCJEk0* z4[hMfrn2UJGqU}Syoes Even easier and faster then reading /dev/urandom: (defun rcd-random-uptime-string () (md5 (concat (emacs-uptime) (format-time-string "%N %^N %3N")))) (rcd-random-uptime-string) ⇒ "07df010260ac5749a995039f824c040c" (dotimes (a 100) (insert (rcd-password) "\n")) And there are no duplicate lines: !AY3ghyBTsiyTRCv$H4a #AO$9QIeqqgsHIKVWSU0 %ZtEkhdwoJQpmH6@gaSM &WF%VYZ4fmMONNS5cJHO )Y-aHOBlPSnDH7NnDB3u +2$wYpcMszD7AsjKjOfI 2vobwUjiDj!e7ShjjHW- 4h%ehaFdRKpY_3LHfWBV 4rl!s6HiHdDuvd=gUgYB 5BTJ$s8tQKHz#KiMRHfD 6D)KLwhfuqA5TRvWRsf) 7]OyrJkgcWP4Tjc[Brle 9Fh-uBbDTkFsFtwHI9Y{ 9LTo@n$LPhOndbh1rbmz =ktT&kbYMIshdd6kQj9H @8Rej6COwOsHGn%VZFsO AaKGbLTtY{25woec=shp BBpVm_IqdioGAdwf2k@v BoH!Ik0JM}tzG5czRBOl D_cPsce4nWVoAcbb=6DN DzJ7heuTqQHdeqig$B&W G)DtbsqqE7sFQOjKEqm- GVzDiczd2rS9lIh+Ho#N H+U1zOsbyf3zNcgJIs}r HLJBq+RUkAhmUNE7j(5V Hg8foHqr8bq+VQHGMv[f Hlv!LVjwhPL1]ck8GSVJ JHe4U{C2NtAt(HbvVmfZ KojYhJC=us3fd3etMQW} M]Hl%6vVpa9UCicMPwAe Md%w(DNSh1bEegkJumhe N[Ri9bA6CWBRY$klMhIn NjEF5H=yzEyHWF@cOwZ4 O*hcl6l_LHGHMTA9mANc OdhHWWmJ8oaRT]G{aKvP P%lEQDAvtw1YGs4Rgb}B PYjClUibF+4^aWHEOpUH PpuE4ZTzO0kicKZBH}di QO3zZbztPH^B3Jhcqki= RHGjNEL^tN4B8qz=hKfC RUGd$e0dAVZv3fvNwHV! S9ksI9vKAo]wmtydsa=H SU*2dCcrcIkb6oJ|LRle Sa[jwR5)TLCAPhkfvYlM Tcam2KRsLg*Bi7CNiqW{ TuemgV}9QQW8&rsrqjvI USJt[6Gph4qQfbPhci)e W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cZ6mlWcmHlU! -- Jean Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns In support of Richard M. Stallman https://stallmansupport.org/