Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue#207 app#get hash #211

Closed
wants to merge 7 commits into from

Conversation

fxleblanc
Copy link
Contributor

@fxleblanc fxleblanc changed the title Issue#207 app#get hash, fix #207 Issue#207 app#get hash Oct 10, 2015
@fxleblanc fxleblanc added this to the m7 - site transactionnel milestone Oct 10, 2015
@fxleblanc fxleblanc self-assigned this Oct 10, 2015
@@ -55,7 +56,9 @@ def get_hash(password, salt):
m = hashlib.sha512()
m.update(salt.encode('utf8'))
m.update(password.encode('utf8'))
return m.digest()
hex = m.hexdigest()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

la db a un champ binaire

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je retransforme en binaire le digest. J'ai marqué la raison dans le description de la PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Non tes gens sur stack overflow veulent le hex.. Là tu prend du hex et tu
remet en bin.
Ton test devrait prendre un hex hardcodé et le mettre en bin. Ça a pas
rapport le hex dans le code de prod.
Le 11 oct. 2015 11:36 AM, "Félix Leblanc" [email protected] a
écrit :

In app.py
#211 (comment)
:

@@ -55,7 +56,9 @@ def get_hash(password, salt):
m = hashlib.sha512()
m.update(salt.encode('utf8'))
m.update(password.encode('utf8'))

  • return m.digest()
  • hex = m.hexdigest()

Je retransforme en binaire le digest. J'ai marqué la raison dans le
description de la PR.


Reply to this email directly or view it on GitHub
https://github.com/lanmomo/lanmomo-website/pull/211/files#r41711917.

@fxleblanc fxleblanc force-pushed the issue#207-app#get_hash branch from 7cc60c6 to 2846de8 Compare October 12, 2015 19:13
@fxleblanc fxleblanc closed this Oct 12, 2015
@fxleblanc fxleblanc deleted the issue#207-app#get_hash branch October 12, 2015 19:14
@jdupl
Copy link
Member

jdupl commented Oct 12, 2015

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

app#get_hash
2 participants