crypto - blockdate/ios-rn-sdk GitHub Wiki
ๅ ๅฏๆจกๅ
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> -
.encodeBase64(content) โ
Promise.<string> -
.decodeBase64(content) โ
Promise.<string> -
.encodeSHA1(content) โ
Promise.<string> - .encodeSHA2(content)
-
.encodeMD5(content) โ
MD5 ็ผ็
Kind: static method of miot/host/crypto
| Param | Type |
|---|---|
| content | string |
base64 ็ผ็
Kind: static method of miot/host/crypto
| Param | Type |
|---|---|
| content | string |
base64่งฃ็
Kind: static method of miot/host/crypto
| Param | Type |
|---|---|
| content | string |
SHA1 ็ผ็
Kind: static method of miot/host/crypto
| Param | Type |
|---|---|
| content | string |
SHA2 ็ผ็
Kind: static method of miot/host/crypto
| Param | Type |
|---|---|
| content | * |