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

@smt-lib/md5

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smt-lib/md5

@smt-lib/md5提供了计算md5和base64功能

  • 1.0.2
  • latest
  • npm
  • Socket score

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

title: smt-md5 header: develop nav: extensions sidebar: smt-md5

smt-md5

解释: 在小程序开发中,没有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

Package last updated on 17 Feb 2020

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