资源简介
iOS demo支持国密SM2,SM3, SM4,ZUC(EEA3 EIA3)。代码是基于OpenSSL的。支持armv7,arm64,armv7s,i386,x86_64架构。网上代码参差不齐,自己研究了好久,分享给大家。
代码片段和文件信息
//
// AppDelegate.m
// TestEncryptionAndDecryption
//
// Created by zhangyazhou on 2019/1/16.
// Copyright © 2019 FuFeiTong. All rights reserved.
//
#import “AppDelegate.h“
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks disable timers and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources save user data invalidate timers and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-01-16 14:47 TestEncryptionAndDecryption\
目录 0 2019-01-16 15:09 TestEncryptionAndDecryption\TestEncryptionAndDecryption\
文件 298 2019-01-16 14:47 TestEncryptionAndDecryption\TestEncryptionAndDecryption\AppDelegate.h
目录 0 2019-01-16 15:19 __MACOSX\
目录 0 2019-01-16 15:19 __MACOSX\TestEncryptionAndDecryption\
目录 0 2019-01-16 15:19 __MACOSX\TestEncryptionAndDecryption\TestEncryptionAndDecryption\
文件 171 2019-01-16 14:47 __MACOSX\TestEncryptionAndDecryption\TestEncryptionAndDecryption\._AppDelegate.h
文件 6148 2019-01-16 14:58 TestEncryptionAndDecryption\TestEncryptionAndDecryption\.DS_Store
文件 120 2019-01-16 14:58 __MACOSX\TestEncryptionAndDecryption\TestEncryptionAndDecryption\._.DS_Store
目录 0 2019-01-16 14:47 TestEncryptionAndDecryption\TestEncryptionAndDecryption\Assets.xcassets\
目录 0 2019-01-16 14:47 TestEncryptionAndDecryption\TestEncryptionAndDecryption\Assets.xcassets\AppIcon.appiconset\
文件 1590 2019-01-16 14:47 TestEncryptionAndDecryption\TestEncryptionAndDecryption\Assets.xcassets\AppIcon.appiconset\Contents.json
文件 62 2019-01-16 14:47 TestEncryptionAndDecryption\TestEncryptionAndDecryption\Assets.xcassets\Contents.json
目录 0 2019-01-16 15:19 __MACOSX\TestEncryptionAndDecryption\TestEncryptionAndDecryption\Assets.xcassets\
文件 171 2019-01-16 14:47 __MACOSX\TestEncryptionAndDecryption\TestEncryptionAndDecryption\Assets.xcassets\._Contents.json
文件 2761 2019-01-16 15:09 TestEncryptionAndDecryption\TestEncryptionAndDecryption\ViewController.m
文件 176 2019-01-16 15:09 __MACOSX\TestEncryptionAndDecryption\TestEncryptionAndDecryption\._ViewController.m
目录 0 2019-01-16 15:18 TestEncryptionAndDecryption\TestEncryptionAndDecryption\ba
文件 1881 2019-01-16 14:50 TestEncryptionAndDecryption\TestEncryptionAndDecryption\ba
目录 0 2019-01-16 15:19 __MACOSX\TestEncryptionAndDecryption\TestEncryptionAndDecryption\ba
文件 176 2019-01-16 14:50 __MACOSX\TestEncryptionAndDecryption\TestEncryptionAndDecryption\ba
文件 3598 2019-01-16 15:18 TestEncryptionAndDecryption\TestEncryptionAndDecryption\ba
文件 176 2019-01-16 15:18 __MACOSX\TestEncryptionAndDecryption\TestEncryptionAndDecryption\ba
文件 355 2019-01-16 14:47 TestEncryptionAndDecryption\TestEncryptionAndDecryption\main.m
文件 227 2019-01-16 14:47 __MACOSX\TestEncryptionAndDecryption\TestEncryptionAndDecryption\._main.m
目录 0 2019-01-16 15:00 TestEncryptionAndDecryption\TestEncryptionAndDecryption\lib\
文件 17504752 2019-01-16 14:57 TestEncryptionAndDecryption\TestEncryptionAndDecryption\lib\libEncryptionAndDecryption.a
目录 0 2019-01-16 15:19 __MACOSX\TestEncryptionAndDecryption\TestEncryptionAndDecryption\lib\
文件 176 2019-01-16 14:57 __MACOSX\TestEncryptionAndDecryption\TestEncryptionAndDecryption\lib\._libEncryptionAndDecryption.a
目录 0 2019-01-16 14:54 TestEncryptionAndDecryption\TestEncryptionAndDecryption\lib\EncryptionAndDecryption\
文件 6148 2019-01-16 14:28 TestEncryptionAndDecryption\TestEncryptionAndDecryption\lib\EncryptionAndDecryption\.DS_Store
............此处省略35个文件信息
评论
共有 条评论