当前位置:首页 » 编程博文
开发技术指南» 文章正文
    引言: -摘抄于网络´ MD5加密算法在VB中的实现 O
 

 

    摘要:作者:網中人承接上一章所介紹的 command line ,這裡我們用 echo 這個命令加以進一步說明。 溫習---標準的 command line 包含三個部件: * command_name option argument echo 是一個非常簡單、直接的 linux 命令: * 將 argument 送出至標準輸出(stdout),通常就是在監視器(monitor)上輸出。 (註:stdo......
 ·safemapping     »显示摘要«
    摘要:create table empinfo (empno number(4) primary key,empname varchar2(20) not null,hiredate date,salary number(7,2),jobdescription clob,bytecodes blob);===================================// c#// the foll......


MD5加密算法在VB中的实现

-摘抄于网络

【程序编程相关:《C++语言的设计和演化》书评

【推荐阅读:ImageList控件的问题

´ md5加密算法在vb中的实现 【扩展信息:关于数据库连接串的安全问题

option explicit

dim w1 as string, w2 as string, w3 as string, w4 as string

function md5f(byval tempstr as string, byval w as string, byval x as s

tring, byval y as string, byval z as string, byval xin as string, byva

l qdata as string, byval rots as integer)

    md5f = bigmod32add(rotleft(bigmod32add(bigmod32add(w, tempstr), bi

gmod32add(xin, qdata)), rots), x)

end function

sub md5f1(w as string, byval x as string, byval y as string, byval z a

s string, byval xin as string, byval qdata as string, byval rots as in

teger)

dim tempstr as string

    tempstr = bigxor(z, bigand(x, bigxor(y, z)))

    w = md5f(tempstr, w, x, y, z, xin, qdata, rots)

end sub

sub md5f2(w as string, byval x as string, byval y as string, byval z a

s string, byval xin as string, byval qdata as string, byval rots as in

teger)

dim tempstr as string

    tempstr = bigxor(y, bigand(z, bigxor(x, y)))

    w = md5f(tempstr, w, x, y, z, xin, qdata, rots)

end sub

sub md5f3(w as string, byval x as string, byval y as string, byval z a

s string, byval xin as string, byval qdata as string, byval rots as in

teger)

dim tempstr as string

    tempstr = bigxor(x, bigxor(y, z))

    w = md5f(tempstr, w, x, y, z, xin, qdata, rots)

end sub

sub md5f4(w as string, byval x as string, byval y as string, byval z a

s string, byval xin as string, byval qdata as string, byval rots as in

teger)

dim tempstr as string

    tempstr = bigxor(y, bigor(x, bignot(z)))

    w = md5f(tempstr, w, x, y, z, xin, qdata, rots)

end sub


...   下一页
 ·web 开发技术系列之一    »显示摘要«
    摘要: 前言 1.为什么要讨论? 简单的来说,就是就用来开发web应用所需要的技术,目前有很多讨论各种技术的论坛,但我在这里想讨论的是横向方面,也就是在web应用开发中,如何把各种技术结合起来,提高开发效率.用更通俗的话讲,不要讲最先进的,讲最有用的. 2.内容包括什么? web开发技术包括三个层面: a) 显示层. 页面制作 ,这个通常由美工完成 b) 逻辑层.主要讨论的内容,包......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE