关于加密字符串?谁能把这段C代码转成Java 的?(100分)

  • 主题发起人 主题发起人 rockchina
  • 开始时间 开始时间
R

rockchina

Unregistered / Unconfirmed
GUEST, unregistred user!
void
as_decrypt(char *passwd, char *cry_passwd)
{
static char encry_patrn[] =
"asdfasdfasdfasdfasdfasdfasdfasdf";
short i;
for (i = 0;
i < PASSWORD_MAX;
i++)
{
passwd = cry_passwd ^ encry_patrn;
}
}
 
public String[] as_decrypt(char[] cry_passwd){
char temp[]=new char[PASSWORD_MAX];
char encry_patrn[]={'a','s','d','f','a','s','d','f','a','s','d','f','a',s','d',','f','a','s','d','f','a','s','d','f','a','s','d','f','a','s','d','f'};
}
for (short i;i< PASSWORD_MAX;
i++){
temp=cry_passwd ^ encry_patrn;
}
return temp;
}
 
temp=cry_passwd^encry_patrn;
改成
temp=cry_passwd&amp;encry_patrn;
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
577
import
I
后退
顶部