Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #43080

USBLock : lock/unlock your computer with a USB key

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <svenito@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.014
X-Spam-Evidence '*H*': 0.97; '*S*': 0.00; 'url:pypi': 0.03; 'exercise': 0.04; 'insert': 0.05; 'pypi': 0.07; 'url:github': 0.09; 'wrote': 0.14; 'it),': 0.16; 'subject:key': 0.16; 'subject:lock': 0.16; 'basically': 0.19; 'solution.': 0.20; 'stick': 0.24; 'software.': 0.24; "i've": 0.25; 'pending': 0.26; 'subject: : ': 0.26; 'subject:/': 0.26; 'especially': 0.30; 'message-id:@mail.gmail.com': 0.30; 'convenience': 0.31; 'keys': 0.31; 'allows': 0.31; 'run': 0.32; 'linux': 0.33; 'url:python': 0.33; 'computer.': 0.33; 'to:name:python-list': 0.33; 'device': 0.34; 'screen': 0.34; 'subject:with': 0.35; 'info': 0.35; 'tool': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'thanks': 0.36; 'url:org': 0.36; 'project': 0.37; 'security,': 0.38; 'needed': 0.38; 'to:addr:python-list': 0.38; 'little': 0.38; 'launch': 0.39; 'to:addr:python.org': 0.39; 'remove': 0.60; 'provide': 0.64; 'more': 0.64; 'media': 0.66; 'military': 0.68; 'subject:your': 0.76; 'lying': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=SlRXQFJS2b7aV5Dt1tJ6cuDhnYa+2VC7f0KL10HvBS8=; b=nQUg3QDQAW/Tft7EMgftO94ftTx8L07D4CsUwnDBjEHIqiIyOAxdj+/KT4SFoywpeS QskiPQVQH9avN2UF5f2rIslPA+oHUHpAkHmDmY2H4CDmfEMA89g9/e2AlMm6VHV2MUy5 iaINg23AiNDNwQGf8Su37P+5XGwcXSirkARQI0fPiBTnvXK5QZKrUuKh5bJrHHq/rZ5R xGBCjq67uycRyOFfVp7FuH3ll6nCOKgbxcO9JI6q/tWn8his5hgcN6BoOX86x3Bff7db GKfoIHh4uKdJbxDKqfmSJMy3peuissxErGmQidrxO6SNb+0jUBygMbGvm1GV0ChWxezc mErA==
MIME-Version 1.0
X-Received by 10.194.71.110 with SMTP id t14mr32189282wju.53.1365434497069; Mon, 08 Apr 2013 08:21:37 -0700 (PDT)
Date Mon, 8 Apr 2013 16:21:36 +0100
Subject USBLock : lock/unlock your computer with a USB key
From Sven <svenito@gmail.com>
To python-list <python-list@python.org>
Content-Type multipart/alternative; boundary=047d7bfd0bd6297ecb04d9dafeb8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.292.1365434504.3114.python-list@python.org> (permalink)
Lines 58
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1365434504 news.xs4all.nl 6870 [2001:888:2000:d::a6]:57095
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:43080

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

I've been working on a little project and have a working Linux
implementation so far. Basically it allows a user to use any USB stick as a
key to lock and unlock their computer. More info in the repo or PyPi
https://pypi.python.org/pypi/USBLock

Basically run the program with -a to add a device (added once you insert
it), then run it without any arguments. Insert the key again, and when you
remove it your computer will lock. Insert the key again and it will unlock.
It's not intended to provide military grade security, it's more of a
convenience tool to launch built in screen locking software.

Currently it locks a Linux box with xlock, pending a better solution.

I wrote it as an exercise in playing around with USB media and events, and
also because I needed a use for these old USB keys I have lying around :)

Always looking for contributions, suggestions and improvements. Especially
OS X and Win support.

Repo:
https://github.com/Svenito/usblock

Thanks for your time.

-- 
./Sven

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

USBLock : lock/unlock your computer with a USB key Sven <svenito@gmail.com> - 2013-04-08 16:21 +0100

csiph-web