V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
remaerd
V2EX  ›  iDev

分享我用于加密数据的开源框架 - Safe

  •  1
     
  •   remaerd ·
    remaerd · 2015-05-18 11:31:02 +08:00 · 3006 次点击
    这是一个创建于 3237 天前的主题,其中的信息可能已经有所发展或是发生改变。
    项目需求,所以参考 1Password 的设计开发了这个用于加密数据的 Swift 开源框架。因为对加密学的东西涉足甚浅,希望能够得到大师的指导。

    https://github.com/remaerd/Safe

    谢谢。
    5 条回复    2015-05-20 10:30:12 +08:00
    walleve
        1
    walleve  
       2015-05-18 11:57:01 +08:00
    你的分享就是我们回贴的最大动力
    fangjinmin
        2
    fangjinmin  
       2015-05-18 12:52:26 +08:00
    加密最重要的是加密算法,你用的是只是AES128bit, 不是特别安全了,换成256bit吧,或者作成接口,可以让用户选择。
    remaerd
        3
    remaerd  
    OP
       2015-05-18 16:38:51 +08:00 via iPad
    @fangjinmin 感谢指出,我的确看漏了 1Password 那篇文章里关于 Encryption Keys 的加密算法选择。另外我其实对文章中提到的 Derived MAC key 的使用有疑问,我对如何保护 Master Key 防篡改上面无法通过文章获得答案。不知道您可不可以再多看看?

    感谢
    fangjinmin
        4
    fangjinmin  
       2015-05-19 13:32:44 +08:00
    @remaerd 我没有看过你说的1Password的文章,没法给你更多的建议。
    kepenj
        5
    kepenj  
       2015-05-20 10:30:12 +08:00
    你的分享就是我们回贴的最大动力 +1
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5493 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 09:06 · PVG 17:06 · LAX 02:06 · JFK 05:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.