如何生成md5哈希? [英] How to generate a md5 hash?

查看:86
本文介绍了如何生成md5哈希?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我在这里的第一篇文章,我在''C''非常非常新。

编程。

我开始''翻译''我的PHP程序,超出了很多东西

生成一个md5哈希,我必须在''C'中生成一个md5哈希,但是我

不能在任何地方找到它。

我已经读过crypt.h手册页,我在
http:// groups.google.com.br/group/co...4b37481e4d0b48


但我还是不知道如何从我的字符串生成md5哈希

''测试''例如。


Plz,如果有人可以帮助我,我会很高兴


谢谢

Hi, this is my first post here and I''m very very new in ''C''
programming.
And I began to ''translate'' my PHP program, that beyond a lot of things
generates a md5 hash, and I must generate a md5 hash in ''C'' , but I
cant found it anywhere.
I''ve readed the crypt.h man page, I read twice the post in
http://groups.google.com.br/group/co...4b37481e4d0b48

But I still dont know how to generate a md5 hash from my string
''testing'' for example.

Plz, if anyone can help me I''d be glad

Thanks

推荐答案



dutche写道:


dutche wrote:
这是s是我在这里发表的第一篇文章,我是'C'编程的新手。
我开始''翻译''我的PHP程序,这超出了很多东西
生成一个md5哈希,我必须在''C'中生成一个md5哈希,但我无法在任何地方找到它。
我已经读过crypt.h手册页,我在
中读了两遍 http://groups.google.com.br/group/co...4b37481e4d0b48
''testing''。
Hi, this is my first post here and I''m very very new in ''C''
programming.
And I began to ''translate'' my PHP program, that beyond a lot of things
generates a md5 hash, and I must generate a md5 hash in ''C'' , but I
cant found it anywhere.
I''ve readed the crypt.h man page, I read twice the post in
http://groups.google.com.br/group/co...4b37481e4d0b48

But I still dont know how to generate a md5 hash from my string
''testing'' for example.




定义MD5的RFC包含一个样本C

实现。


-
Er ********* @ sun.com



The RFC that defines MD5 contains a sample C
implementation.

--
Er*********@sun.com


" dutche"写道:
"dutche" writes:
这是我在这里的第一篇文章,我是'C'编程的新手。
我开始''翻译''我的PHP程序,超出很多东西
生成一个md5哈希,我必须在''C'中生成一个md5哈希,但我无法在任何地方找到它。<我已经阅读了crypt.h手册页,我在
中读了两遍 http://groups.google.com.br/group /co...4b37481e4d0b48

但我仍然不知道如何从我的字符串中生成md5哈希
''测试''例如。

Plz,如果有人能帮助我,我会很高兴
Hi, this is my first post here and I''m very very new in ''C''
programming.
And I began to ''translate'' my PHP program, that beyond a lot of things
generates a md5 hash, and I must generate a md5 hash in ''C'' , but I
cant found it anywhere.
I''ve readed the crypt.h man page, I read twice the post in
http://groups.google.com.br/group/co...4b37481e4d0b48

But I still dont know how to generate a md5 hash from my string
''testing'' for example.

Plz, if anyone can help me I''d be glad




你看过这个吗?

http://www.faq s.org/rfcs/rfc1321.html


是的,我已经介绍了整个RFC,但正如我所说的......我是非常新的''C''

我复制了附录中的文件。


此时,一切都很好......但是当我尝试编译

时......就像......我不知道如何编译这些文件。


我试过''gcc mddriver。 c -o mddriver'',出现了很多错误

我:/


我在这里张贴因为我尝试了所有我能做的事情没有结果。


谢谢

Yes, I''ve readed the entire RFC, but as I said...I''m very new in ''C''
and I copied the files that is in Appendix.

At this point, everything''s fine...but when I try to compile
it...like...I donno how to compile those files togheter.

I tried ''gcc mddriver.c -o mddriver'' , and a lot of errors appears to
me :/

I''m posting here cause I tried everything that I can with no results.

Thanks


这篇关于如何生成md5哈希?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆