Skip to content

Commit

Permalink
Added package name to config
Browse files Browse the repository at this point in the history
  • Loading branch information
David Fendrich committed May 28, 2013
1 parent bba62b8 commit 8cb5d73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion selfspy/__init__.py
Expand Up @@ -32,7 +32,7 @@
from selfspy.password_dialog import get_password
from selfspy import check_password

import config as cfg
from selfspy import config as cfg

def parse_config():
conf_parser = argparse.ArgumentParser(description=__doc__, add_help=False,
Expand Down
2 changes: 2 additions & 0 deletions selfspy/models.py
Expand Up @@ -124,6 +124,7 @@ def pad(s, padnum):
return s
return s + '\0' * (padnum - (ls % padnum))


def maybe_encrypt(s, other_encrypter=None):
if other_encrypter is not None:
s = pad(s, 8)
Expand All @@ -133,6 +134,7 @@ def maybe_encrypt(s, other_encrypter=None):
s = ENCRYPTER.encrypt(s)
return s


def maybe_decrypt(s, other_encrypter=None):
if other_encrypter is not None:
s = other_encrypter.decrypt(s)
Expand Down

0 comments on commit 8cb5d73

Please sign in to comment.