Smartcard
Playing Java SmartCards with Clojure
Install / Use
/learn @profitware/SmartcardREADME
Smartcard
The Smartcard library is a simple wrapper around Java Smartcard library.
Installation
Prerequisites include installed pcsc-lite and pcsc-tools software and pscsd service up and running.
To install, add the following to your project :dependencies:
[smartcard "0.1.3"]
Or use the Leiningen template to build a new application from scratch:
lein new smartcard my-smartcard-application
Usage
(use 'smartcard.core)
(def applet-id [0x4f 0x46 0x46 0x5a 0x4f 0x4e 0x45 0x32 0x10 0x01])
(defsmartcard applet-function applet-id
(let [line (->> (.transmit card [0x10 0x30 0x00 0x00 0x00])
.getData
bytes-to-str)]
(println line)))
(applet-function)
License
Copyright © 2018 Sergey Sobko
Distributed under the MIT License. See LICENSE.
All the libraries and systems are licensed and remain the property of their respective owners.
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
