@wii/encrypt
TypeScript icon, indicating that this package has built-in type declarations

2.13.1 • Public • Published

Encrypt

JavaScriptHash 加密

Install

npm i @wii/encrypt

API

import { encrypt, getSignature } from '@wii/encrypt';
  • encrypt(str, salt)

    参数 是否必须 说明
    str 明文
    salt
  • getSignature(str, saltHash, timestamp)

    参数 是否必须 说明
    str 明文
    saltHash 密文(通过 encrypt 函数加密获得)
    timestamp 时间戳

/@wii/encrypt/

    Package Sidebar

    Install

    npm i @wii/encrypt

    Weekly Downloads

    0

    Version

    2.13.1

    License

    ISC

    Unpacked Size

    6.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • leo_
    • jerryjchen
    • chanceyliu
    • kagawa
    • jasonngao
    • qinmudi
    • wenyan0202
    • wongjorie