Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A package to create qr code for fund transfer between VietNam banks with NAPAS standard
A package to create qr code for fund transfer between VietNam banks with NAPAS standard
Using npm:
$ npm install --save napas-qr
const napasQR = require('napas-qr');
const qrProps = {
qrType: 'DYNAMIC',
bin: '970416',
receiverNumber: '224528479',
instrumentType: 'ACCOUNT',
amount: 10000,
orderId: 'NPS6869',
description: 'TRANSFER TO SOMEONE'
};
const qrContent = napasQR.generateQRContent(qrProps);
// 00020101021238530010A0000007270123000697041601092245284790208QRIBFTTA53037045405100005802VN62340107NPS68690819TRANSFER TO SOMEONE6304AC13
You also can generate qr image by using package qrcode
const qr = require('qrcode');
qr.toFile(
'qr.png',
qrContent,
{
errorCorrectionLevel: 'H',
type: 'png',
margin: 2,
color: {
dark: '#000000',
light: '#ffffff'
}
},
function (err) {
if (err) throw err;
console.log('QR code created!');
}
);
Params | Type | Required | Description |
---|---|---|---|
qrType | String | Yes* | Type of QR to generate. Enums = ['STATIC', 'DYNAMIC'] |
bin | String | Yes* | Bank bin |
receiverNumber | String | Yes* | Account number or card number |
instrumentType | String | Yes* | Type of receiver number. Enums = ['ACCOUNT', 'CARD']. Don't need after v1.0.4 |
amount | Number | Optional | Amount. Optional if qrType = 'STATIC' |
orderId | String | Optional | Order id |
description | String | Optional | Description |
FAQs
A package to create qr code for fund transfer between VietNam banks with NAPAS standard
The npm package napas-qr receives a total of 20 weekly downloads. As such, napas-qr popularity was classified as not popular.
We found that napas-qr 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.