
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
var cardreader = require('card-reader');
var iso7816 = require('iso7816');
cardreader.on('device-activated', function (reader) {
console.info(`Device '${reader.name}' activated`);
});
cardreader.on('device-deactivated', function (reader) {
console.info(`Device '${reader.name}' deactivated`);
});
cardreader.on('card-removed', function (reader) {
console.info(`Card removed from '${reader.name}' `);
});
cardreader.on('command-issued', function (reader, command) {
console.info(`Command '${command.toString('hex')}' issued to '${reader.name}' `);
});
cardreader.on('response-received', function (reader, response) {
console.info(`Response '${response}' received from '${reader.name}' `);
});
cardreader.on('card-inserted', function (reader, status) {
console.info(`Card inserted into '${reader.name}', atr: '${status.atr.toString('hex')}'`);
var application = iso7816(cardreader);
application
.selectFile([0x31, 0x50, 0x41, 0x59, 0x2E, 0x53, 0x59, 0x53, 0x2E, 0x44, 0x44, 0x46, 0x30, 0x31])
.then(function (response) {
console.info(`Select PSE Response: '${response}'`);
}).catch(function (error) {
console.error('Error:', error, error.stack);
});
});
Tested on Mac OSX with the SCM SCR3500 Smart Card Reader. This library should work with most PC/SC readers - I'll update this page when I get to test others. If you know of any other devices that work please let me know.
FAQs
Unknown package
We found that iso7816 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.