www.codeleading.com Open in urlscan Pro
2a06:98c1:3121::c  Public Scan

URL: https://www.codeleading.com/article/12434630940/
Submission: On August 28 via manual from US — Scanned from NL

Form analysis 2 forms found in the DOM

Name: dropdown #

<form name="dropdown" action="#">
  <nav>
    <section>
      <ul class="sf-menu">
        <li class="active"><a href="https://www.codeleading.com">首页</a></li>
        <li><a href="mailto:contact@codeleading.com">联系我们 </a></li>
        <li><a href="https://www.codeleading.com/copyright.html" target="_blank">版权申明</a></li>
        <li><a href="https://www.codeleading.com/privacy.html" target="_blank">隐私政策</a></li>
      </ul>
    </section>
  </nav>
</form>

POST /search

<form id="searchForm" action="/search" method="post" onsubmit="return validate();" style="margin:0;float:right;">
  <div>
    <input type="text" name="s" id="s" style="font-size:16px;width:200px;display: inline-block;padding:0;margin:0"> <input type="submit" value="搜索" style="color:black;display: inline-block;height:32px;font-size:16px;">
  </div>
</form>

Text Content

WE VALUE YOUR PRIVACY

We and our partners store and/or access information on a device, such as cookies
and process personal data, such as unique identifiers and standard information
sent by a device for personalised ads and content, ad and content measurement,
and audience insights, as well as to develop and improve products.With your
permission we and our partners may use precise geolocation data and
identification through device scanning. You may click to consent to our and our
partners’ processing as described above. Alternatively you may access more
detailed information and change your preferences before consenting or to refuse
consenting.Please note that some processing of your personal data may not
require your consent, but you have a right to object to such processing. Your
preferences will apply to this website only. You can change your preferences at
any time by returning to this site or visit our privacy policy.
MORE OPTIONS AGREE


代码先锋网 代码片段及技术文章聚合

 * 首页
 * 联系我们
 * 版权申明
 * 隐私政策

 * 首页
 * 联系我们
 * 版权申明
 * 隐私政策


SSKEYCHAIN





SSKeychain



https://github.com/soffes/sskeychain

 

SSKeychain is a simple wrapper for accessing accounts, getting passwords,
setting passwords, and deleting passwords using the system Keychain on Mac OS X
and iOS.

SSKeychain是一个对keychain简易封装的开源库,用以存储用户信息,密码信息等.

 

Adding to Your Project

Simply add the following to your Podfile if you're using CocoaPods:

你可以用CocoaPods安装,在Podfile中写入下面一句话:

pod 'SSKeychain'

or Cartfile if you're using Carthage:

如果你是在使用Carthage,写入下面一句话:

github "soffes/SSKeychain"



To manually add to your project:

或者手动添加到项目当中:

 1. Add Security.framework to your target 添加Security.framework框架
 2. Add SSKeychain.h, SSKeychain.m, SSKeychainQuery.h, and SSKeychainQuery.m to
    your project. 将SSKeychain.h, SSKeychain.m, SSKeychainQuery.h,
    与 SSKeychainQuery.m添加到你的项目当中.

SSKeychain requires ARC.

SSKeychain需要开启ARC.

Note: Currently SSKeychain does not support Mac OS 10.6.

注意:当前的SSKeychain并不支持Mac OS 10.6

 

Working with the Keychain

SSKeychain has the following class methods for working with the system keychain:

SSKeychain有以下的一些方法供你使用:

+ (NSArray *)allAccounts;
+ (NSArray *)accountsForService:(NSString *)serviceName;
+ (NSString *)passwordForService:(NSString *)serviceName account:(NSString *)account;
+ (BOOL)deletePasswordForService:(NSString *)serviceName account:(NSString *)account;
+ (BOOL)setPassword:(NSString *)password forService:(NSString *)serviceName account:(NSString *)account;

Easy as that. (See SSKeychain.h and SSKeychainQuery.h for all of the methods.)

是不是很简单.(你可以在 SSKeychain.h 与 SSKeychainQuery.h 中看到所有相关方法)

 

Documentation

Read the online documentation.

你可以阅读在线文档. 

 

Debugging

If your saving to the keychain fails, use the NSError object to handle it. You
can invoke [error code]to get the numeric error code. A few values are defined
in SSKeychain.h, and the rest in SecBase.h.

如果你存储keychain操作失败,请使用NSError来捕获他.

NSError *error = nil;
SSKeychainQuery *query = [[SSKeychainQuery alloc] init];
query.service = @"MyService";
query.account = @"soffes";
[query fetch:&error];

if ([error code] == errSecItemNotFound) {
    NSLog(@"Password not found");
} else if (error != nil) {
    NSLog(@"Some other error occurred: %@", [error localizedDescription]);
}

Obviously, you should do something more sophisticated. You can just call [error
localizedDescription] if all you need is the error message.

 

Disclaimer

Working with the keychain is pretty sucky. You should really check for errors
and failures. This library doesn't make it any more stable, it just wraps up all
of the annoying C APIs.

 

Thanks

This was originally inspired by EMKeychain and SDKeychain (both of which are now
gone). Thanks to the authors. SSKeychain has since switched to a simpler
implementation that was abstracted fromSSToolkit.

A huge thanks to Caleb Davenport for leading the way on version 1.0 of
SSKeychain.

版权声明:本文为weixin_34185320原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/weixin_34185320/article/details/90656404




--------------------------------------------------------------------------------


智能推荐


DAY5: [LEETCODE中等] 2. 两数相加

Day5: [LeetCode中等] 2. 两数相加 题源: 来自leetcode题库: 思路: 单纯的链表对应相加,考察链表基本功而已。 代码: dirty
code凑合看吧...


1016-PRIME RING PROBLEM,素数环,深搜!

Prime Ring Problem                                                    ...


[USACO 2.3.3] ZERO SUM 和为零 (数据加强版)

题目描述 请考虑一个由 1 到 N(N=3,4,5,...)的数字组成的递增数列:1,2,3,...,N。 现在请在数列中插入+表示加,或者-表示减,抑或是
表示空白,来将每一对数字组合在一起(请不在第一个数字前插入符号)。 计算该表达式的结果并注意你是否得到了和为零。
请你写一个程序找出所有产生和为零的长度为 N 的数列。 输入格式 单独的一行表示整数 N。 输出格...


MYAJAX

转载于:https://www.jianshu.com/p/08a655523e68...


把类改为SPRINGBOOT注入后引发了什么有趣的现象?

把类改为springboot注入后引发了什么有趣的现象? 前言
    最近改造一个老项目,把它改成springboot的方式,其中发现一个类使用new的方式来获得类对象于是就把它改成springboot注入方式。大致也如下。
输出结果 改造前 改造后 将setCompanyManager()方法中获取CompanyManager改成如下方式 输出结果: 结...




猜你喜欢


BOOTSTRAP 组件-进度条

1 : 基本进度条     2 : 带有提示的进度条     3 : 不同颜色的进度条     4 : 条纹     5 : 发廊     6 : 堆叠    
基本进度条 带有提示的进度条 不同颜色的进度条 条纹 发廊 堆叠...


RN AND IOS

文字标签...


YOU MUST NOT CALL SETTAG() ON A VIEW GLIDE IS TARGETING

参考 Glide加载图片报错You must not call setTag() on a view Glide is targeting You must
not call setTag() on a view Glide is targeting的解决方案 起因
今天将项目中的Picasso换成Glide结果在一个RecyclerView的Adapter中出现了这个错误。 原因 原因就是Vie...


WINDOW的更新过程分析

前面的两篇文章,window的创建过程分析和window的删除过程分析分别分析了window的添加和删除过程,这篇文章
将继续分析window的更新过程。基于前面两篇文章的分析,我们知道,window的删除过程也是通过WindowManager
发起的,实际的执行是有WindowManagerImpl类的updateViewLayout方法,在通过WindowManagerGlobal的updat...


GARLAND CODEFORCES - 767C

http://codeforces.com/problemset/problem/767/C 找两个除根节点之外的点 将整棵树分为权值相等的三部分 两个点的关系
要么lca是两者其中一个 要么不是 对于第一种情况 在dfs时用栈保存权值为(2/3*tot)的点 如果遍历到某个权值为(1/3*tot)的点时战非空
则找到答案 对于第二种情况 对于遍历到的每棵子树 看它有多少棵子树含有权值为(1/3*...




相关文章

 * SSKeychain
 * SSKeyChain保存密码
 * iOS 通过SSKeychain获取唯一标识
 * SSKeyChain保存密码的N姿势
 * iOS SSKeyChain(钥匙串)--密码存储
 * iOS SSKeyChain(钥匙串)--密码存储
 * 利用SSKeychain缓存用户及账号密码
 * (转)SSKeychain在iOS中的原理和使用说明
 * 使用轻量开源框架SSKeychain储存密码到keychain中
 * 1.5Java函数(方法)





热门文章

 * 生成图片验证码类
 * 225. 用队列实现栈 Implement Stack using Queues
 * 快速了解InterSystems IRIS的API管理:引入对API优先设计法的支持
 * 解决运行keil uvision4的时候总是提示error 56,can't open file的问题
 * ACM训练集---洛谷 P1162 填涂颜色
 * 第46项:优先选择Stream中无副作用的函数
 * SPOJ DQUERY - D-query 主席树 (求区间不同数的个数模板)/ 树状数组
 * 强烈推荐-JS基本类型与引用类型知多少
 * 虚拟机下使用oprofile报错Failed to open profile device: Operation not permitted的解决
 * 主页数据加载数据有时加载不出来




推荐文章

 * 利用 Set 去掉 list中重复值
 * Android 读取txt 文件
 * SDUT 2017 春夏组队训练赛3
 * 嵌入式面试 C语言 sizeof与strlen有哪些区别
 * selenium3启动一次浏览器执行多个测试用例
 * boost 序列化(二进制/文本)
 * re—正则表达式笔记
 * CSP/CCF计算机职业资格认证题目:[201803-1 跳一跳]【已解决】
 * 牛客多校第十场 Tournament(构造)
 * java自学笔记:异常处理(4)




相关标签

 * SSKeychain
 * SSToolkit
 * keychain
 * 加密
 * UDID
 * 密码
 * 移动开发
 * ios
 * C++题目
 * 算法



© 2018-2022 All rights reserved by codeleading.com