Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@smt-lib/md5

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smt-lib/md5

**解释:** 在小程序开发中,没有window的概念,导致市面上很多绑定DOM或者BOM的三方库无法使用,swan-md5是官方提供的md5和base64算法库。

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-25%
Maintainers
2
Weekly downloads
 
Created
Source

解释: 在小程序开发中,没有window的概念,导致市面上很多绑定DOM或者BOM的三方库无法使用,swan-md5是官方提供的md5和base64算法库。

方法 encodeHex

|类型 |必填 | 默认值 |说明| |---- | ---- | ---- | ----|----| |String | 是 | | 要转换的字符串 |

代码示例

import {encodeHex} from 'swan-md5';

const string = 'abcdefghigklmn';
const md5edString = encodeHex(string);

方法 encodeBase64

|类型 |必填 | 默认值 |说明| |---- | ---- | ---- | ----|----| |String | 是 | | 要转换的字符串 |

代码示例

import {encodeBase64} from 'swan-md5';

const string = 'abcdefghigklmn';
const base64edString = encodeBase64(string);

FAQs

Package last updated on 20 Dec 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc