Exemplo n.º 1
0
 def get_ident(cls, name):
     return sha1(name).hexdigest()
Exemplo n.º 2
0
 def test_simple(self):
     md5('x').hexdigest() == '9dd4e461268c8034f5c8564e155c67a6'
     sha1('x').hexdigest() == '11f6ad8ec52a2984abaafd7c3b516503785c2072'
Exemplo n.º 3
0
 def get_ident(cls, name):
     return sha1(name).hexdigest()
Exemplo n.º 4
0
 def test_unicode(self):
     md5(u'ü').hexdigest() == 'c03410a5204b21cd8229ff754688d743'
     sha1(u'ü').hexdigest() == '94a759fd37735430753c7b6b80684306d80ea16e'