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.
Sick of copy-and-pasting IBANs to forms? Why not just scan a QR code and have your favorite banking app take care of the rest?
Why not be generous and support wikipedia with EUR10? Grab your phone, open your banking app, select the QR scanner and scan the image below which was created with this tool.
1st Disclaimer: The author of this code has no affiliation with the EPC whatsoever. Henceforth, you are welcome to use the code at your own dispense, but any use is at your own (commercial) risk.
2nd Disclaimer: Currently, the EPC specifications are implemented only to work with IBAN-based consumer wire transfers within the European Economic Area (EEA), i.e. using the following pieces of information:
Of course, any helping hand is welcome to extend the core functionality to more generic transactions.
To use the code as a standalone command line interface (CLI) tool, then use pipx
as follows
pipx install py-epc-qr
You may verify the installation by calling epcqr version
.
The output should be identical to what pipx
printed.
If you intend to use the code instead directly in your own Python projects, then install the package using pip
pip install py-epc-qr
You may use the package as a standalone command line interface (CLI) or as part of your own code.
Having installed the package with pipx
(see above), you may verify the installation upon calling
>> epcqr --help
Usage: epcqr [OPTIONS] COMMAND [ARGS]...
Create EPC-compliant QR codes for wire transfers.
Options:
--install-completion [bash|zsh|fish|powershell|pwsh]
Install completion for the specified shell.
--show-completion [bash|zsh|fish|powershell|pwsh]
Show completion for the specified shell, to
copy it or customize the installation.
--help Show this message and exit.
Commands:
create Create EPC-compliant QR code for IBAN-based wire transfer...
version Show version and exit.
The last lines show the available commands.
The core functionality lies behind create
, for which you can call again the help
.
epcqr create --help
Usage: epcqr create [OPTIONS]
Create EPC-compliant QR code for IBAN-based wire transfer within European
economic area.
Options:
--out TEXT name of generated qr png file [default: qr.png]
--from-yaml TEXT specify yaml file from which to create qr
--help Show this message and exit.
If you call the create
command without any options, it is started in an interactive mode.
You are asked to input all relevant information.
If your input is correct, an image will be created in your current directory.
Alternatively, you can create the QR code from a yaml
template, for which the repository contains an example.
If you intend to use the source code in your own Python projects, then a minimal working example looks as follows:
from py_epc_qr.transaction import consumer_epc_qr
epc_qr = consumer_epc_qr(
beneficiary= "Wikimedia Foerdergesellschaft",
iban= "DE33100205000001194700",
amount= 123.45,
remittance= "Spende fuer Wikipedia"
)
epc_qr.to_qr()
The relevant functions are gathered in transaction.py
FAQs
Generate EPC-compatible QR codes for wire transfers
We found that py-epc-qr demonstrated a healthy version release cadence and project activity because the last version was released less than 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.