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.
react-qrvideo
Advanced tools
Transfer data through QR codes.
This project can be useful for people who need to transfer data between devices, when they do not have an Internet connection (Wi-Fi or mobile data) or bluetooth.
This project was developed to be executed in React-Native with Redux and runs on expo.
By performing multiple tests, I managed to transfer 10 kb / s on average, without losing image quality in QR sequences (to be able to scan correctly, even on devices with small screens). However theoretically, it could be transferred up to a speed of 43 kb / s
At the moment the project only allows to transfer objects of type JSON, however, later on I hope to be able to add transfer of other types of files.
$ yarn add react-qrvideo
or
$ npm install react-qrvideo --save
import { qrReducer as DataQr } from '../components/react-qrvideo';
const reducersJson = {
// Your reducer ...
};
reducersJson[DATA_QR] = DataQr;
export default combineReducers(reducersJson);
import { QRVideo } from 'react-qrvideo';
render() {
const sampleJson = {name: 'Yamil', email: 'yamilquery@gmail', github: 'yamilquery'};
return(
<QRVideo
json{sampleJSon}
size={300}
speed={50}
density={300}
/>
);
}
import { QRVideo } from 'react-qrvideo';
render() {
return(
<QRVideo
isScanner
onComplete={data => { alert(JSON.stringify(data)); }}
/>
);
}
Name | Description | Type | Required | Default Value |
---|---|---|---|---|
isScanner | Activating this value will activate the scanning mode | boolean | No | false |
json | JSON object to be transferred by QR stream | Object | No | null |
size | QR size | number | No | 300 |
speed | QR sequence speed in milliseconds | number | No | 250 |
density | Character density per QR | number | No | 400 |
onComplete | Callback function when scan finished | Function | No | () => {} |
Want to contribute? Great!
FAQs
Transfer data through QR codes.
We found that react-qrvideo 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.