Simon Tatham <ana...@pobox.com> wrote:
> To get around this, I added a feature which replaces the passwd/shadow
> based check with a user-provided subprogram.

Now I look at the existing bug list, this might provide functionality
related to two existing bugs:

 - #84419 xtrlock won't work with NIS/shadow maps

   This is exactly what I use it for, and it avoids complicating
   xtrlock itself any more than necessary. Perhaps the direct PAM-based
   check the reporter suggested could be turned into a more polished
   version of my horrid su-based check script, although I don't know how
   to do that off the top of my head.

 - #806734 xtrlock: add custom passphrase

   The requester wanted to prompt for a passphrase at startup, but
   perhaps having one configured in advance is at least good enough, and
   maybe even better? (If you use the same passphrase all the time, it'd
   be embarrassing to make a typo when leaving your desk, and then not
   be able to get back in.)

Cheers,
Simon

-- 
import hashlib; print((lambda p,q,g,y,r,s,m: (lambda w:(pow(g,int(hashlib.sha1(
m.encode('ascii')).hexdigest(),16)*w%q,p)*pow(y,r*w%q,p)%p)%q)(pow(s,q-2,q))==r
and s%q!=0 and m)(12342649995480866419, 2278082317364501, 1670428356600652640,
5398151833726432125, 645223105888478, 1916678356240619, "<ana...@pobox.com>"))

Reply via email to