
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@smt-lib/md5
Advanced tools
解释: 在小程序开发中,没有window的概念,导致市面上很多绑定DOM或者BOM的三方库无法使用,@smt-lib/md5是官方提供的md5和base64算法库。
小程序种使用三方npm包方法,见npm使用说明
npm install @smt-lib/md5
方法 encodeHex
|类型 |必填 | 默认值 |说明| |---- | ---- | ---- | ----|----| |String | 是 | | 要转换的字符串 |
import {encodeHex} from '@smt-lib/md5';
const string = 'abcdefghigklmn';
const md5edString = encodeHex(string);
方法 encodeBase64
|类型 |必填 | 默认值 |说明| |---- | ---- | ---- | ----|----| |String | 是 | | 要转换的字符串 |
import {encodeBase64} from '@smt-lib/md5';
const string = 'abcdefghigklmn';
const base64edString = encodeBase64(string);
FAQs
@smt-lib/md5提供了计算md5和base64功能
We found that @smt-lib/md5 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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 researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.