Comments (7)
本地测试时,有没有做压力测试,看看会出现失败吗?这个库有点坑
from objective-c-rsa.
做过压力测试的,没有出现失败过,但是线上就很多。只能在上层业务调用处,判断 RSA 加密返回是否为空🤷♂️
from objective-c-rsa.
做过压力测试的,没有出现失败过,但是线上就很多。只能在上层业务调用处,判断 RSA 加密返回是否为空🤷♂️
如果是因为资源抢占的问题导致,我们是把源码中生成 SecKeyRef 的地方改成了通过公钥数据来创建。
from objective-c-rsa.
检查一下锁里面的代码在其它位置是否有访问,如果其它地方也有访问,需要看下是否同样加锁了
from objective-c-rsa.
[publicDictionary setObject:(__bridge id) kSecAttrAccessibleAlways forKey:(__bridge id)kSecAttrAccessible];
我这边是在后台的时候出现的。加上这句话
from objective-c-rsa.
NSString *tag = @"RSAUtil_PubKey"; 把这个改一下 能改善很多。。。 估计你的App里面有其他SDK也用了这个库,tag冲突会导致异步的时候取到别人的公钥
from objective-c-rsa.
“kSecAttrAccessibleAlways” iOS14弃用了,iOS14后有啥好办法?
from objective-c-rsa.
Related Issues (20)
- BEGIN RSA PUBLIC KEY
- 请问什么时候能支持私钥加密公钥解密啊?
- project returnung null values HOT 3
- 使用公钥加密后 java后台不能解密 HOT 2
- Can not decrypt HOT 3
- SecItemAdd status -34018 HOT 3
- Android sample HOT 3
- 请问有C#服务器的解密算法么? HOT 1
- Can not decrypt with PKCS#1. HOT 1
- 应用在锁屏的时候解密失败,返回nil HOT 2
- RSA return -25308 errSecInteractionNotAllowed
- 并发时,SecItemCopyMatching方法会返回errSecItemNotFound HOT 5
- 在swift上加密后台不能解密 HOT 1
- 严重的bug HOT 1
- js怎么通过公钥解密?
- 并发的加解密会导致失败 HOT 1
- 这个库有两个严重的问题,使用前必看!!!
- 吴祖洋什么时候可以出来澄清,说下懒投资状态呢
- 请问 为什么解密时需要 把公钥存储到keychain? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from objective-c-rsa.