# encryptPassword

加密密码

# 调用方式

encryptPassword(params)
1

返回 Promise,使用 then/catch 或 await 处理结果。

# 请求参数

Prop Type Required Default Description
password String Y - 待加密的明文密码字符串
loginId String Y - 登录人的id

# 接口调用示例

const input = 'example-input'
const params = { password: input, loginId: 'example-id' }

this.$bridge.encryptPassword(params)
  .then(res => {
    console.log(res)
  })
  .catch(error => {
    console.error(error)
  })
1
2
3
4
5
6
7
8
9
10

# 返回参数

字段 类型 说明
data Object 旧文档约定的加密结果对象;具体字段以宿主返回为准
data.encryptPassword String 旧文档使用的加密结果字段,不是待加密的明文