RSA加密

在iOS中使用RSA加密解密,需要用到.der和.p12后缀格式的文件,其中.der格式的文件存放的是公钥(Public key)用于加密,.p12格式的文件存放的是私钥(Private key)用于解密. 首先需要先生成这些文件,然后再将文件导入工程使用,不多说,开始做!

一、使用openssl生成所需秘钥文件

生成环境是在mac系统下,使用openssl进行生成,首先打开终端,按下面这些步骤依次来做:

1. 生成模长为1024bit的私钥文件private_key.pem

openssl genrsa -out private.pem 1024

2. 生成证书请求文件rsaCertReq.csr

openssl req -new -key private_key.pem -out rsaCerReq.csr

注意:这一步会提示输入国家、省份、mail等信息,可以根据实际情况填写,或者全部不用填写,直接全部敲回车.

3. 生成证书rsaCert.crt,并设置有效时间为10年

openssl x509 -req -days 3650 -in rsaCerReq.csr -signkey private_key.pem -out rsaCert.crt

4. 生成供iOS使用的公钥文件public_key.der

openssl x509 -outform der -inrsaCert.crt-out public_key.der

5. 生成供iOS使用的私钥文件private_key.p12

openssl pkcs12 -export -out private_key.p12 -inkey private_key.pem -in rsaCert.crt

注意:这一步会提示给私钥文件设置密码,直接输入想要设置密码即可,然后敲回车,然后再验证刚才设置的密码,再次输入密码,然后敲回车,完毕!

在解密时,private_key.p12文件需要和这里设置的密码配合使用,因此需要牢记此密码.

6. 生成供Java使用的公钥rsa_public_key.pem

openssl rsa -in private_key.pem -out rsa_public_key.pem -pubout

7. 生成供Java使用的私钥pkcs8_private_key.pem

openssl pkcs8 -topk8 -inprivate_key.pem -out pkcs8_private_key.pem -nocrypt

全部执行成功后,会生成如下文件,其中public_key.der和private_key.p12就是iOS需要用到的文件,如下图:

生成的文件

二、将文件导入工程使用

1.新建工程, 并导入Security.framework框架, 如下图:

新建工程并添加框架

2.导入秘钥文件

导入.der和.p12格式的秘钥文件, 如下图:

导入秘钥文件

3.新建用于加密、解密的类RSAEncryptor, 并实现相关方法

新建RSAEncryptor类, 如下图:

新建用于加密解密的类

下面开始上代码, 可以直接复制过去用:

RSAEncryptor.h代码如下:

//

//RSAEncryptor.h

//毛票食堂

//

//Created by Apple on 17/2/11.

//Copyright © 2017年Pandora. All rights reserved.

//

#import

@interfaceRSAEncryptor :NSObject

/**

*加密方法

*

*@param str需要加密的字符串

*@param path'.der'格式的公钥文件路径

*/

+ (NSString*)encryptString:(NSString*)str publicKeyWithContentsOfFile:(NSString*)path;

/**

*解密方法

*

*@param str需要解密的字符串

*@param path'.p12'格式的私钥文件路径

*@param password私钥文件密码

*/

+ (NSString*)decryptString:(NSString*)str privateKeyWithContentsOfFile:(NSString*)path password:(NSString*)password;

/**

*加密方法

*

*@param str需要加密的字符串

*@param pubKey公钥字符串

*/

+ (NSString*)encryptString:(NSString*)str publicKey:(NSString*)pubKey;

/**

*解密方法

*

*@param str需要解密的字符串

*@param privKey私钥字符串

*/

+ (NSString*)decryptString:(NSString*)str privateKey:(NSString*)privKey;

@end

//

//RSAEncryptor.m

//毛票食堂

//

//Created by Apple on 17/2/11.

//Copyright © 2017年Pandora. All rights reserved.

//

#import"RSAEncryptor.h"

//RSAEncryptor.m代码如下:

#import"RSAEncryptor.h"

#import

@implementationRSAEncryptor

staticNSString*base64_encode_data(NSData*data){

data = [database64EncodedDataWithOptions:0];

NSString*ret = [[NSStringalloc]initWithData:dataencoding:NSUTF8StringEncoding];

returnret;

}

staticNSData*base64_decode(NSString*str){

NSData*data = [[NSDataalloc]initWithBase64EncodedString:stroptions:NSDataBase64DecodingIgnoreUnknownCharacters];

returndata;

}

#pragma mark -使用'.der'公钥文件加密

//加密

+ (NSString*)encryptString:(NSString*)str publicKeyWithContentsOfFile:(NSString*)path{

if(!str || !path)returnnil;

return[selfencryptString:strpublicKeyRef:[selfgetPublicKeyRefWithContentsOfFile:path]];

}

//获取公钥

+ (SecKeyRef)getPublicKeyRefWithContentsOfFile:(NSString*)filePath{

NSData*certData = [NSDatadataWithContentsOfFile:filePath];

if(!certData) {

returnnil;

}

SecCertificateRefcert =SecCertificateCreateWithData(NULL, (CFDataRef)certData);

SecKeyRefkey =NULL;

SecTrustReftrust =NULL;

SecPolicyRefpolicy =NULL;

if(cert !=NULL) {

policy =SecPolicyCreateBasicX509();

if(policy) {

if(SecTrustCreateWithCertificates((CFTypeRef)cert, policy, &trust) ==noErr) {

SecTrustResultTyperesult;

if(SecTrustEvaluate(trust, &result) ==noErr) {

key =SecTrustCopyPublicKey(trust);

}

}

}

}

if(policy)CFRelease(policy);

if(trust)CFRelease(trust);

if(cert)CFRelease(cert);

returnkey;

}

+ (NSString*)encryptString:(NSString*)str publicKeyRef:(SecKeyRef)publicKeyRef{

if(![strdataUsingEncoding:NSUTF8StringEncoding]){

returnnil;

}

if(!publicKeyRef){

returnnil;

}

NSData*data = [selfencryptData:[strdataUsingEncoding:NSUTF8StringEncoding]withKeyRef:publicKeyRef];

NSString*ret =base64_encode_data(data);

returnret;

}

#pragma mark -使用'.12'私钥文件解密

//解密

+ (NSString*)decryptString:(NSString*)str privateKeyWithContentsOfFile:(NSString*)path password:(NSString*)password{

if(!str || !path)returnnil;

if(!password) password =@"";

return[selfdecryptString:strprivateKeyRef:[selfgetPrivateKeyRefWithContentsOfFile:pathpassword:password]];

}

//获取私钥

+ (SecKeyRef)getPrivateKeyRefWithContentsOfFile:(NSString*)filePath password:(NSString*)password{

NSData*p12Data = [NSDatadataWithContentsOfFile:filePath];

if(!p12Data) {

returnnil;

}

SecKeyRefprivateKeyRef =NULL;

NSMutableDictionary* options = [[NSMutableDictionaryalloc]init];

[optionssetObject: passwordforKey:(__bridgeid)kSecImportExportPassphrase];

CFArrayRefitems =CFArrayCreate(NULL,0,0,NULL);

OSStatussecurityError =SecPKCS12Import((__bridgeCFDataRef) p12Data, (__bridgeCFDictionaryRef)options, &items);

if(securityError ==noErr&&CFArrayGetCount(items) >0) {

CFDictionaryRefidentityDict =CFArrayGetValueAtIndex(items,0);

SecIdentityRefidentityApp = (SecIdentityRef)CFDictionaryGetValue(identityDict,kSecImportItemIdentity);

securityError =SecIdentityCopyPrivateKey(identityApp, &privateKeyRef);

if(securityError !=noErr) {

privateKeyRef =NULL;

}

}

CFRelease(items);

returnprivateKeyRef;

}

+ (NSString*)decryptString:(NSString*)str privateKeyRef:(SecKeyRef)privKeyRef{

NSData*data = [[NSDataalloc]initWithBase64EncodedString:stroptions:NSDataBase64DecodingIgnoreUnknownCharacters];

if(!privKeyRef) {

returnnil;

}

data = [selfdecryptData:datawithKeyRef:privKeyRef];

NSString*ret = [[NSStringalloc]initWithData:dataencoding:NSUTF8StringEncoding];

returnret;

}

#pragma mark -使用公钥字符串加密

/* START: Encryption with RSA public key */

//使用公钥字符串加密

+ (NSString*)encryptString:(NSString*)str publicKey:(NSString*)pubKey{

NSData*data = [selfencryptData:[strdataUsingEncoding:NSUTF8StringEncoding]publicKey:pubKey];

NSString*ret =base64_encode_data(data);

returnret;

}

+ (NSData*)encryptData:(NSData*)data publicKey:(NSString*)pubKey{

if(!data || !pubKey){

returnnil;

}

SecKeyRefkeyRef = [selfaddPublicKey:pubKey];

if(!keyRef){

returnnil;

}

return[selfencryptData:datawithKeyRef:keyRef];

}

+ (SecKeyRef)addPublicKey:(NSString*)key{

NSRangespos = [keyrangeOfString:@"-----BEGIN PUBLIC KEY-----"];

NSRangeepos = [keyrangeOfString:@"-----END PUBLIC KEY-----"];

if(spos.location!=NSNotFound&& epos.location!=NSNotFound){

NSUIntegers = spos.location+ spos.length;

NSUIntegere = epos.location;

NSRangerange =NSMakeRange(s, e-s);

key = [keysubstringWithRange:range];

}

key = [keystringByReplacingOccurrencesOfString:@"\r"withString:@""];

key = [keystringByReplacingOccurrencesOfString:@"\n"withString:@""];

key = [keystringByReplacingOccurrencesOfString:@"\t"withString:@""];

key = [keystringByReplacingOccurrencesOfString:@" "withString:@""];

// This will be base64 encoded, decode it.

NSData*data =base64_decode(key);

data = [selfstripPublicKeyHeader:data];

if(!data){

returnnil;

}

//a tag to read/write keychain storage

NSString*tag =@"RSAUtil_PubKey";

NSData*d_tag = [NSDatadataWithBytes:[tagUTF8String]length:[taglength]];

// Delete any old lingering key with the same tag

NSMutableDictionary*publicKey = [[NSMutableDictionaryalloc]init];

[publicKeysetObject:(__bridgeid)kSecClassKeyforKey:(__bridgeid)kSecClass];

[publicKeysetObject:(__bridgeid)kSecAttrKeyTypeRSAforKey:(__bridgeid)kSecAttrKeyType];

[publicKeysetObject:d_tagforKey:(__bridgeid)kSecAttrApplicationTag];

SecItemDelete((__bridgeCFDictionaryRef)publicKey);

// Add persistent version of the key to system keychain

[publicKeysetObject:dataforKey:(__bridgeid)kSecValueData];

[publicKeysetObject:(__bridgeid)kSecAttrKeyClassPublicforKey:(__bridgeid)

kSecAttrKeyClass];

[publicKeysetObject:[NSNumbernumberWithBool:YES]forKey:(__bridgeid)

kSecReturnPersistentRef];

CFTypeRefpersistKey =nil;

OSStatusstatus =SecItemAdd((__bridgeCFDictionaryRef)publicKey, &persistKey);

if(persistKey !=nil){

CFRelease(persistKey);

}

if((status !=noErr) && (status !=errSecDuplicateItem)) {

returnnil;

}

[publicKeyremoveObjectForKey:(__bridgeid)kSecValueData];

[publicKeyremoveObjectForKey:(__bridgeid)kSecReturnPersistentRef];

[publicKeysetObject:[NSNumbernumberWithBool:YES]forKey:(__bridgeid)kSecReturnRef];

[publicKeysetObject:(__bridgeid)kSecAttrKeyTypeRSAforKey:(__bridgeid)kSecAttrKeyType];

// Now fetch the SecKeyRef version of the key

SecKeyRefkeyRef =nil;

status =SecItemCopyMatching((__bridgeCFDictionaryRef)publicKey, (CFTypeRef*)&keyRef);

if(status !=noErr){

returnnil;

}

returnkeyRef;

}

+ (NSData*)stripPublicKeyHeader:(NSData*)d_key{

// Skip ASN.1 public key header

if(d_key ==nil)return(nil);

unsignedlonglen = [d_keylength];

if(!len)return(nil);

unsignedchar*c_key = (unsignedchar*)[d_keybytes];

unsignedintidx=0;

if(c_key[idx++] !=0x30)return(nil);

if(c_key[idx] >0x80) idx += c_key[idx] -0x80+1;

elseidx++;

// PKCS #1 rsaEncryption szOID_RSA_RSA

staticunsignedcharseqiod[] =

{0x30,0x0d,0x06,0x09,0x2a,0x86,0x48,0x86,0xf7,0x0d,0x01,0x01,

0x01,0x05,0x00};

if(memcmp(&c_key[idx], seqiod,15))return(nil);

idx +=15;

if(c_key[idx++] !=0x03)return(nil);

if(c_key[idx] >0x80) idx += c_key[idx] -0x80+1;

elseidx++;

if(c_key[idx++] !='\0')return(nil);

// Now make a new NSData from this buffer

return([NSDatadataWithBytes:&c_key[idx]length:len - idx]);

}

+ (NSData*)encryptData:(NSData*)data withKeyRef:(SecKeyRef) keyRef{

constuint8_t*srcbuf = (constuint8_t*)[databytes];

size_tsrclen = (size_t)data.length;

size_tblock_size =SecKeyGetBlockSize(keyRef) *sizeof(uint8_t);

void*outbuf =malloc(block_size);

size_tsrc_block_size = block_size -11;

NSMutableData*ret = [[NSMutableDataalloc]init];

for(intidx=0; idx

//NSLog(@"%d/%d block_size: %d", idx, (int)srclen, (int)block_size);

size_tdata_len = srclen - idx;

if(data_len > src_block_size){

data_len = src_block_size;

}

size_toutlen = block_size;

OSStatusstatus =noErr;

status =SecKeyEncrypt(keyRef,

kSecPaddingPKCS1,

srcbuf + idx,

data_len,

outbuf,

&outlen

);

if(status !=0) {

NSLog(@"SecKeyEncrypt fail. Error Code: %d", status);

ret =nil;

break;

}else{

[retappendBytes:outbuflength:outlen];

}

}

free(outbuf);

CFRelease(keyRef);

returnret;

}

/* END: Encryption with RSA public key */

#pragma mark -使用私钥字符串解密

/* START: Decryption with RSA private key */

//使用私钥字符串解密

+ (NSString*)decryptString:(NSString*)str privateKey:(NSString*)privKey{

if(!str)returnnil;

NSData*data = [[NSDataalloc]initWithBase64EncodedString:stroptions:NSDataBase64DecodingIgnoreUnknownCharacters];

data = [selfdecryptData:dataprivateKey:privKey];

NSString*ret = [[NSStringalloc]initWithData:dataencoding:NSUTF8StringEncoding];

returnret;

}

+ (NSData*)decryptData:(NSData*)data privateKey:(NSString*)privKey{

if(!data || !privKey){

returnnil;

}

SecKeyRefkeyRef = [selfaddPrivateKey:privKey];

if(!keyRef){

returnnil;

}

return[selfdecryptData:datawithKeyRef:keyRef];

}

+ (SecKeyRef)addPrivateKey:(NSString*)key{

NSRangespos = [keyrangeOfString:@"-----BEGIN RSA PRIVATE KEY-----"];

NSRangeepos = [keyrangeOfString:@"-----END RSA PRIVATE KEY-----"];

if(spos.location!=NSNotFound&& epos.location!=NSNotFound){

NSUIntegers = spos.location+ spos.length;

NSUIntegere = epos.location;

NSRangerange =NSMakeRange(s, e-s);

key = [keysubstringWithRange:range];

}

key = [keystringByReplacingOccurrencesOfString:@"\r"withString:@""];

key = [keystringByReplacingOccurrencesOfString:@"\n"withString:@""];

key = [keystringByReplacingOccurrencesOfString:@"\t"withString:@""];

key = [keystringByReplacingOccurrencesOfString:@" "withString:@""];

// This will be base64 encoded, decode it.

NSData*data =base64_decode(key);

data = [selfstripPrivateKeyHeader:data];

if(!data){

returnnil;

}

//a tag to read/write keychain storage

NSString*tag =@"RSAUtil_PrivKey";

NSData*d_tag = [NSDatadataWithBytes:[tagUTF8String]length:[taglength]];

// Delete any old lingering key with the same tag

NSMutableDictionary*privateKey = [[NSMutableDictionaryalloc]init];

[privateKeysetObject:(__bridgeid)kSecClassKeyforKey:(__bridgeid)kSecClass];

[privateKeysetObject:(__bridgeid)kSecAttrKeyTypeRSAforKey:(__bridgeid)kSecAttrKeyType];

[privateKeysetObject:d_tagforKey:(__bridgeid)kSecAttrApplicationTag];

SecItemDelete((__bridgeCFDictionaryRef)privateKey);

// Add persistent version of the key to system keychain

[privateKeysetObject:dataforKey:(__bridgeid)kSecValueData];

[privateKeysetObject:(__bridgeid)kSecAttrKeyClassPrivateforKey:(__bridgeid)

kSecAttrKeyClass];

[privateKeysetObject:[NSNumbernumberWithBool:YES]forKey:(__bridgeid)

kSecReturnPersistentRef];

CFTypeRefpersistKey =nil;

OSStatusstatus =SecItemAdd((__bridgeCFDictionaryRef)privateKey, &persistKey);

if(persistKey !=nil){

CFRelease(persistKey);

}

if((status !=noErr) && (status !=errSecDuplicateItem)) {

returnnil;

}

[privateKeyremoveObjectForKey:(__bridgeid)kSecValueData];

[privateKeyremoveObjectForKey:(__bridgeid)kSecReturnPersistentRef];

[privateKeysetObject:[NSNumbernumberWithBool:YES]forKey:(__bridgeid)kSecReturnRef];

[privateKeysetObject:(__bridgeid)kSecAttrKeyTypeRSAforKey:(__bridgeid)kSecAttrKeyType];

// Now fetch the SecKeyRef version of the key

SecKeyRefkeyRef =nil;

status =SecItemCopyMatching((__bridgeCFDictionaryRef)privateKey, (CFTypeRef*)&keyRef);

if(status !=noErr){

returnnil;

}

returnkeyRef;

}

+ (NSData*)stripPrivateKeyHeader:(NSData*)d_key{

// Skip ASN.1 private key header

if(d_key ==nil)return(nil);

unsignedlonglen = [d_keylength];

if(!len)return(nil);

unsignedchar*c_key = (unsignedchar*)[d_keybytes];

unsignedintidx=22;//magic byte at offset 22

if(0x04!= c_key[idx++])returnnil;

//calculate length of the key

unsignedintc_len = c_key[idx++];

intdet = c_len &0x80;

if(!det) {

c_len = c_len &0x7f;

}else{

intbyteCount = c_len &0x7f;

if(byteCount + idx > len) {

//rsa length field longer than buffer

returnnil;

}

unsignedintaccum =0;

unsignedchar*ptr = &c_key[idx];

idx += byteCount;

while(byteCount) {

accum = (accum <<8) + *ptr;

ptr++;

byteCount--;

}

c_len = accum;

}

// Now make a new NSData from this buffer

return[d_keysubdataWithRange:NSMakeRange(idx, c_len)];

}

+ (NSData*)decryptData:(NSData*)data withKeyRef:(SecKeyRef) keyRef{

constuint8_t*srcbuf = (constuint8_t*)[databytes];

size_tsrclen = (size_t)data.length;

size_tblock_size =SecKeyGetBlockSize(keyRef) *sizeof(uint8_t);

UInt8*outbuf =malloc(block_size);

size_tsrc_block_size = block_size;

NSMutableData*ret = [[NSMutableDataalloc]init];

for(intidx=0; idx

//NSLog(@"%d/%d block_size: %d", idx, (int)srclen, (int)block_size);

size_tdata_len = srclen - idx;

if(data_len > src_block_size){

data_len = src_block_size;

}

size_toutlen = block_size;

OSStatusstatus =noErr;

status =SecKeyDecrypt(keyRef,

kSecPaddingNone,

srcbuf + idx,

data_len,

outbuf,

&outlen

);

if(status !=0) {

NSLog(@"SecKeyEncrypt fail. Error Code: %d", status);

ret =nil;

break;

}else{

//the actual decrypted data is in the middle, locate it!

intidxFirstZero = -1;

intidxNextZero = (int)outlen;

for(inti =0; i < outlen; i++ ) {

if( outbuf[i] ==0) {

if( idxFirstZero <0) {

idxFirstZero = i;

}else{

idxNextZero = i;

break;

}

}

}

[retappendBytes:&outbuf[idxFirstZero+1]length:idxNextZero-idxFirstZero-1];

}

}

free(outbuf);

CFRelease(keyRef);

returnret;

}

/* END: Decryption with RSA private key */

@end

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 212,029评论 6 492
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 90,395评论 3 385
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 157,570评论 0 348
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 56,535评论 1 284
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 65,650评论 6 386
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 49,850评论 1 290
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 39,006评论 3 408
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 37,747评论 0 268
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 44,207评论 1 303
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 36,536评论 2 327
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 38,683评论 1 341
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 34,342评论 4 330
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 39,964评论 3 315
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 30,772评论 0 21
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,004评论 1 266
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 46,401评论 2 360
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 43,566评论 2 349

推荐阅读更多精彩内容

  • /**ios常见的几种加密方法: 普通的加密方法是讲密码进行加密后保存到用户偏好设置( [NSUserDefaul...
    彬至睢阳阅读 2,919评论 0 7
  • 嘟哝嘟哝:最近接到一个任务:在客户端动态生成RSA密钥对,然后向服务器发送这个密钥对中的公钥字符串,由服务器进行公...
    TimmyR阅读 8,020评论 19 21
  • 数据 训练1 1500m=breast975+free375+back15042:00 2.7p vs ptn1....
    帝都搬运工阅读 183评论 0 0
  • 熊猫、南瓜和恐龙是 Steven 的三个毛绒玩具。这三个毛绒玩具是非常好的朋友,经常在一起说笑聊天。但是,他们的主...
    右旋左旋阅读 421评论 0 1
  • 俊熙宝宝英语打卡:Dear: J.X. Today we have some new friends with u...
    Viver宣阅读 248评论 0 0