tofferoma
How to access PCSC card readers via erlang/elixir?
Hi,
i was wondering if there is a way to access smart cards via a PCSC reader.
I was unable to find any lib or bindings to do so (here’s a list samples in different languages [1]).
Maybe there is a different way to accomplish the task, or there has never been a use case for erlang centric applications.
Thanks in advance
T
Most Liked
arjan
A while back I wrote a library which interfaces with libnfc compatible card readers:
https://github.com/arjan/nerves_io_nfc
It uses a NIF under the hood to do the device IO. It is quote limited at the moment though, it has only been used to read Mifare NFC cards. But it maybe could get you started.
arekinath
I’ve just recently had reason to put together a proper libpcsc binding for Erlang:
https://github.com/arekinath/erlang-pcsc
If you’re still looking, let me know what you think. Also includes some conveniences like ISO7816 command and response chaining support in an “APDU transform” so you can just send a long data field or get a long reply back.
I don’t use Elixir a lot myself, so I’m not sure how the API will look from that side, but I’m happy to try to improve it.
tofferoma
Thanks a lot. I will give it a try once I find some time a reader :).
In the meantime, you might want to contact Ludovic Rousseau to add the library to his list of PC/SC samples in different languages [1]
[1] Ludovic Rousseau's blog: PC/SC sample in different languages
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










