mirror of
https://github.com/ComradCollective/Comrad
synced 2024-11-17 21:25:37 +00:00
updates
This commit is contained in:
parent
f2a80789c2
commit
931f7987e1
@ -48,9 +48,12 @@ class Crypt(Logger):
|
||||
|
||||
def package_key(self,k,prefix=''):
|
||||
k_b = self.force_binary(k)
|
||||
k_s = k_b.decode('utf-8')
|
||||
k_s2 = prefix + k_s
|
||||
k_b2 = k_s2.encode('utf-8')
|
||||
# k_b = self.cell.encrypt(k_b)
|
||||
prefix_b = self.force_binary(prefix)
|
||||
k_b = self.hash(prefix_b + k_b)
|
||||
# prefix_b = self.force_binary(prefix)
|
||||
k_b = self.hash(k_b2)
|
||||
return k_b
|
||||
|
||||
def package_val(self,k):
|
||||
|
Loading…
Reference in New Issue
Block a user