4 ms·
def make_key(self, password): """Creates an encryption key from the default password or prompts for a new password.""" self.key = hashlib.sha256
by mentat 12y ago
def make_key(self, password):
"""Creates an encryption key from the default password or prompts for a new password."""
self.key = hashlib.sha256(password.encode("utf-8")).digest()
Crack unsalted sha256 of ascii space NSA...
https://docs.python.org/2/library/hashlib.html#key-derivation-function https://docs.python.org/2/library/hashlib.html#key-derivatio... (at least)
- gcr 12y agoNo salt?