Oct 24, 2009

Linux 生成 md5

1. md5sum
$ echo -n 'test' | md5sum
098f6bcd4621d373cade4e832627b4f6

2. python
import md5
hash = md5.new()
hash.update('test')
print hash.hexdigest()

No comments:

Post a Comment

您的评论将使我blog更有动力~