在考虑系统的安全问题时,需要对数据库中"权限表"里的密码进行加密,请问各位高手指点指点了,在此先谢过了!!
解决方案 »
- 读卡器的問題
- Fastreport问题:请问如何可以使masterdata里若分组中只有一个明细,则不显示Groupfooter中的合计。
- 有偿服务,多媒体难题求解,
- 多窗体问题?
- 使用ShowScrollBar对dbgrid滚动条隐藏的问题
- 急需delphi7.0注册码,请大家帮忙!
- 请问 在 toolbar 控件里如何加入 toolbarButton?
- 翻译问题
- variant does not reference an automation object 錯誤,求救
- 如何编程设置本机IP地址?Wait on line..........
- 如何计算某时间段内有几个星期几?
- 双击DBGrid记录行时在DBGridDBLClick事件中弹出一个窗体,但是在双击标题行时并不触发这个dblClick事件,应该怎么写代码?
var i:integer; tempStr:string;
begin
tempStr:=pswd;
for i := 1 to length(tempStr) do
tempStr[i]:=char(integer(tempStr[i])+i);
result:=tempStr;
end;function DeCode(pswd:string):string;//解密函数
var i:integer; tempStr:string;
begin
tempStr:=pswd;
for i := 1 to length(tempStr) do
tempStr[i]:=char(integer(tempStr[i])-i);
result:=tempStr;
end;procedure TForm1.Button1Click(Sender: TObject);
begin
edit2.Text:=EnCode(edit1.Text);//把edit1的text加密放在edit2里
end;procedure TForm1.Button2Click(Sender: TObject);
begin
edit1.Text:=DeCode(edit2.Text);//把edit2里的加密字串还原为原字串放到edit1里
end;
http://community.csdn.net/Expert/topic/5202/5202426.xml?temp=.5576593
帮忙说一下,非常感谢
~