AES GitHub 下载地址 https://github.com/Gurpartap/AESCrypt-ObjC
官方文档
Add this line to your class:
#import "AESCrypt.h"
Usage
NSString *message = @"top secret message"; // message 为加密字符串 与密码混合加密
NSString *password = @"p4ssw0rd"; // passwprd 为用户输入的密码
Encrypting
NSString *encryptedData = [AESCrypt encrypt:message password:password]; //加密
Decrypting
NSString *message = [AESCrypt decrypt:encryptedData password:password]; 解密
之后我么可以通过
NSUserDefaults * saveUserMessageDefaults = [NSUserDefaults standardUserDefaults]
时间: 2024-11-05 14:43:36