[英]I am having issues while decryption using RNCryptor Library
For anyone who might search here: this is a duplicate of RNCryptor#174 , and you may want to read there as well. 对于可能在这里搜索的任何人:这是RNCryptor#174的重复,您可能也想在那里阅读。
Please just post code into the question rather than a screenshot. 请仅将代码发布到问题中,而不是截图。 I can't compile a screenshot, and they're very hard to read.
我无法编译屏幕截图,而且很难阅读。
Error 1 is an HMAC error. 错误1是HMAC错误。 Either your data is corrupted or your password is incorrect.
您的数据已损坏或密码不正确。
Note that NSException never makes sense in Swift. 注意NSException在Swift中永远没有意义。 Switch can't catch them.
开关不能抓住他们。 They only make sense in ObjC if you're going to crash the program shortly after.
仅当您稍后要使程序崩溃时,它们才在ObjC中有意义。 They're not memory-safe in ObjC.
它们在ObjC中不是内存安全的。 You meant to use Swift's throw and ErrorType, which are unrelated to raise or NSException.
您打算使用Swift的throw和ErrorType,它们与引发或NSException无关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.