
Research
Security News
Malicious npm Packages Target BSC and Ethereum to Drain Crypto Wallets
Socket uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
## 开发 ``` // 引入 TRTC 以及加密模块 [注意, 整个应用都需要使用该 TRTC 模块, 不可使用官方提供的TRTC] import { TRTC, useClientCrypto } from 'trtc-sm'
// 引入 TRTC 以及加密模块 [注意, 整个应用都需要使用该 TRTC 模块, 不可使用官方提供的TRTC]
import { TRTC, useClientCrypto } from 'trtc-sm'
// 初始化 TRTC, 配置功能. 具体参考官方文档
const client = TRTC.createClient({
mode: this.mode,
// mode: 'live',
sdkAppId: SDKAPPID,
userId: userID,
userSig: userSig,
useStringRoomId: useStringRoomID,
});
// 加密 [key 是后端提供的国密对称加密key]
useClientCrypto(client, key)
FAQs
## 开发 ``` // 引入 TRTC 以及加密模块 [注意, 整个应用都需要使用该 TRTC 模块, 不可使用官方提供的TRTC] import { TRTC, useClientCrypto } from 'trtc-sm'
The npm package trtc-sm receives a total of 0 weekly downloads. As such, trtc-sm popularity was classified as not popular.
We found that trtc-sm 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 uncovered four malicious npm packages that exfiltrate up to 85% of a victim’s Ethereum or BSC wallet using obfuscated JavaScript.
Security News
TC39 advances 9 JavaScript proposals, including Array.fromAsync, Error.isError, and Explicit Resource Management, which are now headed into the ECMAScript spec.
Security News
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.