Show More
@@ -106,9 +106,9 b' class RhodeCodeCrypto(object):' | |||||
106 | :param hashed: password in hashed form |
|
106 | :param hashed: password in hashed form | |
107 | """ |
|
107 | """ | |
108 |
|
108 | |||
109 |
if __platform__ |
|
109 | if __platform__ in PLATFORM_WIN: | |
110 | return sha256(password).hexdigest() == hashed |
|
110 | return sha256(password).hexdigest() == hashed | |
111 |
elif __platform__ in |
|
111 | elif __platform__ in PLATFORM_OTHERS: | |
112 | return bcrypt.hashpw(password, hashed) == hashed |
|
112 | return bcrypt.hashpw(password, hashed) == hashed | |
113 | else: |
|
113 | else: | |
114 | raise Exception('Unknown or unsupported platform %s' % __platform__) |
|
114 | raise Exception('Unknown or unsupported platform %s' % __platform__) |
General Comments 0
You need to be logged in to leave comments.
Login now