summaryrefslogtreecommitdiff
path: root/docs/smartcard-idea.txt
diff options
context:
space:
mode:
authorKali Kaneko <kali@futeisha.org>2014-08-18 12:52:50 -0500
committerKali Kaneko <kali@futeisha.org>2014-08-18 12:52:50 -0500
commit4bd0fa843176a112c054929fbe6dd99f45d718a2 (patch)
treee5b886e9879c9931cfd1d460f14f7271948924d4 /docs/smartcard-idea.txt
parentd1955bd267a132c24d9e64dde7a1cdb8bd9fe9c5 (diff)
Imported Upstream version 1.3.1upstream
Diffstat (limited to 'docs/smartcard-idea.txt')
-rw-r--r--docs/smartcard-idea.txt10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/smartcard-idea.txt b/docs/smartcard-idea.txt
new file mode 100644
index 0000000..4d8d880
--- /dev/null
+++ b/docs/smartcard-idea.txt
@@ -0,0 +1,10 @@
+>>> import gnupg
+>>> gpg = gnupg.GPG()
+>>> gpg.sc = gnupg.SmartCard() ## this could be done in gnupg.GPG.__init__() too
+>>> gpg.sc.detected()
+True
+>>> gpg.sc.serialno()
+1234567890abcdef
+>>> gpg.sc.learn()
+<some card info data gets put into gpg.sc attributes>
+>>> gpg.sc.