UpdateData(TRUE);
 m_miwencode=_T("");
 CKEY_PRODUCE rsa;
 int codelenght,codenum;
 codelenght=m_yuanwencode.GetLength();
 codenum=codelenght/3;
 CString strmod;
 strmod.Format(_T("%d"),Model);
 ModeNum=strmod.GetLength();
 int Cryptograph;
 for (int i=0;i<codenum;i++)
 {
 CString str;
 str=m_yuanwencode.Mid(3*i,3);
 int j=(str[0]-'0')*100+(str[1]-'0')*10+(str[2]-'0');
 int temp= 1;
 for(int k=0;k<PublicKey;k++)
 {
 temp *= j;
 if( temp >= Model )
 temp %= Model;
 if( !temp )
 Cryptograph = temp;
 }
 Cryptograph = temp % Model;
 str.Format(_T("%d"),Cryptograph);
 int strnum=str.GetLength();
 if (strnum!=ModeNum)
 {
 int s=ModeNum-strnum;
 if (s==1)
 {
 str=_T("0")+str;
 }
 if (s==2)
 {
 str=_T("00")+str;
 }
 if (s==3)
 {
 str=_T("000")+str;
 }
 if (s==4)
 {
 str=_T("0000")+str;
 }
 }
 m_miwencode+=str;
 }
 UpdateData(FALSE);
 m_miwencode=_T("");
vs2005编写的C++(mfc)程序。这个可以不,可以加密字符串,要的话把分给我,发你邮箱里
另外,团IDC网上有许多产品团购,便宜有口碑
                                        
                                      2019-07-17 22:56:51