Giter Site home page Giter Site logo

Comments (7)

detecyang avatar detecyang commented on July 3, 2024

本地测试时,有没有做压力测试,看看会出现失败吗?这个库有点坑

from objective-c-rsa.

clayzhu avatar clayzhu commented on July 3, 2024

做过压力测试的,没有出现失败过,但是线上就很多。只能在上层业务调用处,判断 RSA 加密返回是否为空🤷‍♂️

from objective-c-rsa.

detecyang avatar detecyang commented on July 3, 2024

做过压力测试的,没有出现失败过,但是线上就很多。只能在上层业务调用处,判断 RSA 加密返回是否为空🤷‍♂️

如果是因为资源抢占的问题导致,我们是把源码中生成 SecKeyRef 的地方改成了通过公钥数据来创建。

from objective-c-rsa.

xiaoaihhh avatar xiaoaihhh commented on July 3, 2024

检查一下锁里面的代码在其它位置是否有访问,如果其它地方也有访问,需要看下是否同样加锁了

from objective-c-rsa.

I-m-SuperMan avatar I-m-SuperMan commented on July 3, 2024
[publicDictionary setObject:(__bridge id) kSecAttrAccessibleAlways forKey:(__bridge id)kSecAttrAccessible];

我这边是在后台的时候出现的。加上这句话

from objective-c-rsa.

wxh841969240 avatar wxh841969240 commented on July 3, 2024
    NSString *tag = @"RSAUtil_PubKey";  把这个改一下 能改善很多。。。 估计你的App里面有其他SDK也用了这个库,tag冲突会导致异步的时候取到别人的公钥

from objective-c-rsa.

1552612373 avatar 1552612373 commented on July 3, 2024

“kSecAttrAccessibleAlways” iOS14弃用了,iOS14后有啥好办法?

from objective-c-rsa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.