Changeset - 05fe69812197
[Not reviewed]
Bradley M. Kuhn - 11 years ago 2014-07-03 01:05:31
bkuhn@sfconservancy.org
Rename RhodeCodeCrypto to KallitheaCrypto
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/auth.py
Show inline comments
 
@@ -93,7 +93,7 @@ class PasswordGenerator(object):
 
        return self.passwd
 

	
 

	
 
class RhodeCodeCrypto(object):
 
class KallitheaCrypto(object):
 

	
 
    @classmethod
 
    def hash_string(cls, str_):
 
@@ -135,11 +135,11 @@ class RhodeCodeCrypto(object):
 

	
 

	
 
def get_crypt_password(password):
 
    return RhodeCodeCrypto.hash_string(password)
 
    return KallitheaCrypto.hash_string(password)
 

	
 

	
 
def check_password(password, hashed):
 
    return RhodeCodeCrypto.hash_check(password, hashed)
 
    return KallitheaCrypto.hash_check(password, hashed)
 

	
 

	
 
def generate_api_key(str_, salt=None):
0 comments (0 inline, 0 general)