蒸气加密:表达式类型“数据”是含糊的,没有更多上下文

时间:2018-10-15 20:31:12

标签: swift cryptography sha256 vapor

我现在遇到问题,不知道如何解决。

我写了一个控制器来管理我的用户。以下代码摘录自我的注册功能,其中生成了用于加密用户数据的密钥,该密钥随后存储在数据库中。密钥(ekey)也存储在数据库中。因此,我需要加密密钥,因此我使用用户密码的哈希值。

我在最后一行收到此错误:

document.querySelectorAll('.container__small').addAttribute("disabled",true);

setTimeout(function(){
      if(firstCard.dataset.framework !== secondCard.dataset.framework ){
        firstCard.classList.remove('flip');
        secondCard.classList.remove('flip');
      }

      document.querySelectorAll('.container__small').removeAttribute("disabled");
    }, 1500);

我不知道这是怎么回事。

Error: AES256GCM.encrypt: expression type 'Data' is ambiguous without more context

1 个答案:

答案 0 :(得分:0)

好,今天我再次查看了一下代码,并将代码(encrKey, tag)更改为encrKey,这对我有用。 我很确定,那是在文档中出现了麻烦。

无论如何都要感谢您的答复!