crypto - blockdate/ios-rn-sdk GitHub Wiki

miot/host/crypto

ๅŠ ๅฏ†ๆจกๅ—

Export:
Example

import {Host} from 'miot'
...
const str = '123'
//async
let md5 = await Host.crypto.endoceMD5(str)

//normal
Host.crypto.encodeMD5(str).then(res => {//md5 value is res})
...

miot/host/crypto.encodeMD5(content) โ‡’ Promise.<string>

MD5 ็ผ–็ 

Kind: static method of miot/host/crypto

Param Type
content string

miot/host/crypto.encodeBase64(content) โ‡’ Promise.<string>

base64 ็ผ–็ 

Kind: static method of miot/host/crypto

Param Type
content string

miot/host/crypto.decodeBase64(content) โ‡’ Promise.<string>

base64่งฃ็ 

Kind: static method of miot/host/crypto

Param Type
content string

miot/host/crypto.encodeSHA1(content) โ‡’ Promise.<string>

SHA1 ็ผ–็ 

Kind: static method of miot/host/crypto

Param Type
content string

miot/host/crypto.encodeSHA2(content)

SHA2 ็ผ–็ 

Kind: static method of miot/host/crypto

Param Type
content *
โš ๏ธ **GitHub.com Fallback** โš ๏ธ