u
This commit is contained in:
parent
4a43057f3c
commit
43b913c4b4
@ -31,7 +31,7 @@
|
|||||||
在前后端软件的 package.json 的依赖清单中引入本库:
|
在前后端软件的 package.json 的依赖清单中引入本库:
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install git+https://git.faronear.org/tic/tic.action#RELEASE_OR_BRANCH --save
|
npm install git+https://git.faronear.org/npm/tic.crypto#RELEASE_OR_BRANCH --save
|
||||||
```
|
```
|
||||||
|
|
||||||
## 用法
|
## 用法
|
||||||
@ -48,7 +48,7 @@ let address=ticCrypto.secword2address(sw) // 把密语转换成地址
|
|||||||
## 编程接口规范
|
## 编程接口规范
|
||||||
|
|
||||||
| 函数名 | 参数 | 备注 |
|
| 函数名 | 参数 | 备注 |
|
||||||
| ------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------------- |
|
| ------------------------------- | ------------------------------------------------------------------------ | ------------------------------------------------------------------------- | ------ | ----------------------------------------------------- | --- | ---- | ------ | ---------------------------- | ------ | ------ | ------------------ |
|
||||||
| hash | (data, option={hasher:'sha256', salt, input:'utf8', output:'hex'}) | 哈希算法。给 input(=utf8 | latin1 | ascii)格式的输入 data 加 salt 后,根据 hasher(=sha256 | md5 | sha1 | sha512 | ripemd160),输出 output(=hex | latin1 | base64 | buf)格式的哈希值。 |
|
| hash | (data, option={hasher:'sha256', salt, input:'utf8', output:'hex'}) | 哈希算法。给 input(=utf8 | latin1 | ascii)格式的输入 data 加 salt 后,根据 hasher(=sha256 | md5 | sha1 | sha512 | ripemd160),输出 output(=hex | latin1 | base64 | buf)格式的哈希值。 |
|
||||||
| isHashable | (data) | |
|
| isHashable | (data) | |
|
||||||
| isHash | | |
|
| isHash | | |
|
||||||
|
Loading…
Reference in New Issue
Block a user