rangzen@liberte:~ $ python
Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import sha
print sha.new("dede").hexdigest()
8e65e20d4b7140a2e6ed067933d596228e46d380
rangzen@liberte:~ $ echo "dede"|sha1sum
47fae561fe8701af0356cf8403442a7795d750fb -
rangzen@liberte:~ $ echo "a"|sha1sum
3f786850e387550fdab836ed7e6dc881de23001b -
rangzen@liberte:~ $ python
Python 2.4.1 (#2, Mar 30 2005, 21:51:10)
[GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import sha
print sha.new("a").hexdigest()
86f7e437faa5a7fce15d1ddcb9eaeaea377667b8
Forum Programmation.python sha1sum et sha diffère ?
27
avr.
2005
Ben pourquoi ?