25'ten fazla konu seçemezsiniz
Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
|
import hashlib
|
|
|
|
class LoginHelper(object):
|
|
|
|
@staticmethod
|
|
def hash_password(password):
|
|
hashed_password = hashlib.sha1(password.encode('utf-8'))\
|
|
.hexdigest()
|
|
return hashed_password |