收藏
回答

安全键盘无法获取密文

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug input 微信安卓客户端 8.0.50 3.5.5

按照官方文档input配置安全键盘后,无法获取密文,都没有encryptedValue字段,真机value展示为***,

模拟器value展示为明文,

并且调起的是数字键盘,没配置safe-password-length的情况下,只能输入六位

代码如下,不知道是我哪里没写对吗

 <input style="border: 1px solid blue;" type="safe-password" placeholder="123456" safe-password-cert-path="pages/index/minipro_test_cert-20240830.crt" safe-password-time-stamp="1724997281" safe-password-nonce="1724997281" safe-password-salt="zefengwang" safe-password-custom-hash="md5(sha1('foo' + sha256(sm3(password + 'bar'))))" bind:blur="onBlur" bind:input="onInput" value="{{value}}">
  </input>
回答关注问题邀请回答
收藏
登录 后发表内容