Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
react-native-totp
Advanced tools
由谷歌TOTP两步认证动态验证码生成 google-authenticator 封装的 react-native 插件, 支持 Android 与 iOS
react-native版本 < 0.60
$ npm install react-native-totp --save
$ react-native link react-native-totp
react-native版本 >= 0.60
$ npm install react-native-totp --save
cd ios && pod install
参数 | 类型 | 默认 | 必须 | 详情 |
---|---|---|---|---|
base32String | string | 是 | base32编码的字符串, 需与服务器端一致 | |
digits | number | 6 | 否 | 验证码位数, 默认6位, 需与服务器端一致 |
period | number | 60 | 否 | 有效时间, 单位秒, 默认60秒, 需与服务器端一致 |
import RNTotp from 'react-native-totp';
RNTotp.generateOTP({
base32String: 'R35AQPURMAHIO324',
}, (code) => {
console.log('验证码是: ', code);
alert(code);
});
FAQs
A React Native module google Authenticator (TOTP)
The npm package react-native-totp receives a total of 0 weekly downloads. As such, react-native-totp popularity was classified as not popular.
We found that react-native-totp 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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.