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.
Welcome to Floppy QR! This project provides a way to store and retrieve files using QR codes, inspired by the classic floppy disk style. With Floppy QR, you can encode a file into a series of QR codes and later reconstruct the file from those QR codes. It’s a fun throwback to the days of floppy disks, but with a modern twist!
Clone the repository and install the necessary dependencies using npm:
sudo npm install -g floppy-qr
Note: Don't forget the "-g"
To generate QR codes from a file, use the create
command. This will create QR codes for each chunk of the file.
floppy-qr create <file-path> [-n, --note <optional-note>] [-b, --base64] [-s, --size <chunk-size>] [-c, --correction <level>]
<file-path>
: Path to the file you want to encode into QR codes.--note
: Optional note to include in the metadata QR code.--base64
: Optional flag to encode the file chunks in base64 format.--size
: Optional parameter to specify the size of each chunk. Default is 1650
bytes.--correction
: Optional parameter to set the error correction level. Options are L
, M
, Q
, H
. Default is Q
.Example:
floppy-qr create myfile.txt --note "This is a test file." --base64 --size 2000 --correction H
This command will generate QR codes in a directory named myfile.txt-qr
, with the metadata and file chunks encoded into individual QR codes. It uses base64 encoding, chunks of 2000 bytes, and a high error correction level (H
).
To reconstruct a file from a series of QR codes, use the load
command. This will read the QR codes from the specified directory and reassemble the file. The format (base64 or text) is detected automatically based on the metadata in the first QR code.
floppy-qr load <directory>
<directory>
: Directory containing the QR codes to be read.Example:
floppy-qr load myfile.txt-qr/
This command will read QR codes from the myfile.txt-qr
directory and reconstruct the original file in the current directory. If a note was included, it will be displayed after reconstruction.
createQR.js
: Contains functionality to create QR codes from a file.loadQR.js
: Contains functionality to load and reconstruct a file from QR codes.floppy-qr.js
: Main script for handling command-line interface.colors
: For adding color to console output.fs-extra
: For extended file system operations.pngjs
: For handling PNG image files.qrcode
: For generating QR codes.jsqr
: For decoding QR codes from images.Feel free to contribute to this project! You can submit issues, create pull requests, or suggest improvements. Please follow the standard GitHub workflow for contributions.
This project is licensed under the MIT License. See the LICENSE file for details.
For any questions or support, please reach out to douxx@douxx.xyz.
FAQs
Floppy QR - Store files in QR codes
We found that floppy-qr demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.