数据库插入加密问题

yh235 2007-04-06 08:49:15
我要把数据库中的一个表的几个字段加到另一个数据库中的表里 但是新数据库的一个字段是经过MD5加密的 而旧数据库没有 该怎么做才能把旧数据库的数据经过加密后转到新数据库里?
...全文
313 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
yh235 2007-05-16
  • 打赏
  • 举报
回复
楼上聪明
mrshelly 2007-05-16
  • 打赏
  • 举报
回复
倒分证贴.
benaheng 2007-05-16
  • 打赏
  • 举报
回复
.
MosquitoWeb 2007-05-06
  • 打赏
  • 举报
回复
<!--#include file=md5.asp-->
<!--#include file=inc/conn.asp-->
<%
Server.ScriptTimeout=99999
SQL="Select userpass from joince"
set rs=server.createobject("adodb.recordset")
rs.open SQL,conn,1,3
do while not rs.eof
Rs("userpass") = MD5(Rs("userpass"),16)
rs.movenext
loop
rs.update
rs.close
response.write "完成!"
%>
kmiaoer 2007-04-06
  • 打赏
  • 举报
回复
md5(rs("字段名字"))
penglewen 2007-04-06
  • 打赏
  • 举报
回复
检查这句:MD5(Rs.Fields("userpass").Value,16)
用这句试试 MD5(Rs("userpass")) 或是 MD5(Rs("userpass"),16)

mrwang2000 2007-04-06
  • 打赏
  • 举报
回复
个人意见,仅供参考

错误的参数个数或无效的参数属性值: 'MD5'

应该是对MD5的调用出了问题,检查一下md5.asp 里面的MD5的声明,查看一下调用参数是否正确

或者换一个md5.asp
yh235 2007-04-06
  • 打赏
  • 举报
回复
汗....1W多条数据 你给我加密去吧?
我写了个程序但是他提示
Microsoft VBScript 运行时错误 '800a01c2'

错误的参数个数或无效的参数属性值: 'MD5'

\wwwroot\piliangjiami.asp, line 8

===================================
这是代码 麻烦大家看看哪错了

<!--#include file=md5.asp-->
<!--#include file=inc/conn.asp-->
<%
Server.ScriptTimeout=999
SQL="Select userpass from joince"
set rs=conn.execute (sql)
do while not rs.eof
Rs.Fields("userpass").Value = MD5(Rs.Fields("userpass").Value,16)
rs.movenext
loop
rs.close
response.write "完成!"
%>
mrshelly 2007-04-06
  • 打赏
  • 举报
回复
那就加密呀.

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧