本文整理自网络,侵删。
//处理密码防止sql注入function ChangePwd(str:string) : string;vari,j:Integer;rep:string;begin rep:='!#$%^*'; j:=1; i:=pos('-',str); while i<>0 do begin delete(str,i,1); insert(rep[j],str,i); i:=pos('-',str); j:=j mod 6; j:=j+1; end; Result:=str;end;
相关阅读 >>
Delphi idhttp最简洁的修改和取得cookie例子
idftp tencoding and iidtextencoding
Delphi xe8安卓下汉字转gb2312 urlencode代码
更多相关阅读请进入《Delphi》频道 >>