|
|
|
[求助]RSA算法问题
百度搜索《战争中的数学--军事密码学》 里面有rsa的介绍。比较详细。可以学习一下。 //***************************************************** // // Author: blueapplez // Email: blueapple1987@163.com // Home: http://hi.baidu.com/blueapple_c/home // Time: 2011-05 // //********************************************************* /* // 随意选择两个大的质数p和q,p不等于q,计算N=pq。 // 根据欧拉函数,不大于N且与N互质的整数个数为(p-1)(q-1) // 选择一个整数e与(p-1)(q-1)互质,并且e小于(p-1)(q-1) // 用以下这个公式计算d:d× e ≡ 1 (mod (p-1)(q-1)) 1.签名系统:私钥签名公钥验证。 eg. 您向朋友传送一段数据附加您的数字签名,您需要对您的数据进行MD5之类的运算以取得数据的"指纹", 再对"指纹"进行加密,加密将使用您自己的密钥对中的不公开的私钥。您的朋友收到数据后,用同样的 运算获得数据指纹,再用您的公钥对加密指纹进行解密,比较解密结果与他自己计算出来的指纹是否一 致,即可确定数据是否的确是您发送的、以及在传输过程中是否被篡改。 2.加密系统:公钥加密私钥解密。 eg. 您向朋友传送加密数据,您希望只有您的朋友可以解密,这样的话,您需要首先获取您朋友的密钥对中 公开的2个密钥,e及n。然后用这个密钥进行加密,这样密文只有您的朋友可以解密,因为对应的私 钥只有您朋友拥有。 n,e 公钥, 其中e是一个int型的整数且与(p-1)(q-1)互斥 d 私钥 */ |
|
|
|
[招聘]奇虎360招聘PHP,数据挖据,产品,QA等
大方啊~~~ |
|
[分享]《交易》五分钟微电影,当女孩说出那句话,你能忍住眼泪嘛吗?
建议楼主回家造原子弹 造出来了 给我一颗 我帮你炸。 |
|
[求助]修改汇编函数调用(读取不到数值)
dll里面逻辑复杂吗? 有木有共享段之类的 有木有全局的一些内存啊 什么的 会不会是你给改错了。。。你可以先试着 直接改1.dll fun1看看会不会出问题。 |
|
[原创]一个宏的理解
看不懂楼主什么意思。 |
|
[求助]R0强删文件问题(网络代码经个人修改无问题!求原因)
能把蓝屏的具体条件 告诉我吗 我这边偶尔会出现一次 但我也不知道怎样触发的这个条件。 |
|
[求助]R0强删文件问题(网络代码经个人修改无问题!求原因)
不是你个人原因导致的 因为我也蓝了 而且也是6楼说的那个地方蓝的 上传一个Dmp文件大家研究研究吧 |
|
[求助]R0强删文件问题(网络代码经个人修改无问题!求原因)
Callers of IoAllocateIrp must be running at IRQL <= DISPATCH_LEVEL. 我不太确认哦~ 在前面加一句 if (KeGetCurrentIrql() > DISPATCH_LEVEL) { DbgPrint("SKillDeleteFile KeGetCurrentIrql() > DISPATCH_LEVEL"); return FALSE; } 试试。 |
|
[求助][求助]已知道解密函数求加密函数(已经完成)
BOOL Xstring::EncryptString(const std::string& input, std::string& output) { DWORD dwLen = input.length(); byte *lpTemp = new byte[dwLen + 1]; byte *lpRetString = new byte[dwLen * 2 + 1]; memset(lpTemp, 0, dwLen+1); strcpy((char *)lpTemp, input.c_str()); memset(lpRetString, 0, dwLen*2+1); if (!::CryptEncrypt(m_hKey, NULL, TRUE, 0, (byte*)lpTemp, &dwLen, dwLen)) { delete [] lpTemp; delete [] lpRetString; return FALSE; } for (int i=0; i<dwLen; i++) { lpRetString[i*2]= ((lpTemp[i] & 0xf0)>>4) + 'A'; lpRetString[i*2+1] = ((lpTemp[i]) & 0x0f) + 'a'; } output = (char *)lpRetString; delete [] lpTemp; delete [] lpRetString; return TRUE; } |
|
[原创]送个好账号
能登上。 坐等杯具。 |
|
[分享]MyPathFindFileName
PathStripPath |
|
|
|
[求助]在dll中利用IAT HOOK其它进程函数,一个关于新函数地址的问题,请大侠指点,感激不尽
什么叫重定位?DLL和EXE一样有个基址,但很多个DLL的默认基址都是一样的,当加载一个DLL时,系统会设法装DLL映射到它的默认基址。但是如果他的默认基址被占用,系统会就将它映射到其它进程空间。 也就是说你是对的 网上的很多代码都不严谨。。。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值