Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Subject: Re: cancel locks
Date: Thu, 01 Nov 2001 18:23:14 +0100	[thread overview]
Message-ID: <iluzo66pfr1.fsf@dhcp128.extundo.com> (raw)
In-Reply-To: <m3ofmmie2y.fsf@defun.localdomain> (Jesper Harder's message of "Thu, 01 Nov 2001 18:41:09 +0100")

Jesper Harder <harder@ifa.au.dk> writes:

>>> If someone later wants to contribute a better password generator, it
>>> can be installed with no problem.
>>
>> Here is my contribution:
>>
>> (defun gnus-random-cancel-lock-password ()
>>   (random t)
>>   (format "%x%x" (random) (random)))
>
> Here's another one:
>
>        (md5 (prin1-to-string (recent-keys)))

Canlock should be inserted in news by default now -- customize
`message-insert-canlock' if you want to disable it.  We need some
documentation though, preferably in the "Canceling and Superseding"
node.

The initial password is generated with the following, better ideas
welcome.

(defun message-canlock-generate ()
  "Return a string that is non-trival to guess.
Do not use this for anything important, it is cryptographically weak."
  (md5 (concat (message-unique-id)
	       (format "%x%x%x" (random) (random t) (random))
	       (prin1-to-string (recent-keys))
	       (prin1-to-string (garbage-collect)))))




  reply	other threads:[~2001-11-01 17:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-31 17:45 Simon Josefsson
2001-10-31 18:11 ` Bjørn Mork
2001-10-31 19:06   ` Simon Josefsson
2001-11-01  0:13     ` Robin S. Socha
2001-11-01 11:28     ` Florian Weimer
2001-11-01  8:23 ` Per Abrahamsen
2001-11-01 11:34   ` Florian Weimer
2001-11-01 11:59     ` Per Abrahamsen
2001-11-01 16:34       ` Matt Armstrong
2001-11-01 17:21         ` Per Abrahamsen
2001-11-01 17:41         ` Jesper Harder
2001-11-01 17:23           ` Simon Josefsson [this message]
2001-11-01 18:47             ` Matt Armstrong
2001-11-01 21:09               ` Florian Weimer
2001-11-01 21:10             ` Florian Weimer

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=iluzo66pfr1.fsf@dhcp128.extundo.com \
    --to=jas@extundo.com \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).