Skip to content

Commit

Permalink
update decryption for sensor node
Browse files Browse the repository at this point in the history
  • Loading branch information
entone committed Apr 7, 2016
1 parent 9482964 commit fb2e92f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lablog/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
FACEBOOK_APP_ID = os.getenv("FACEBOOK_APP_ID")
FACEBOOK_APP_SECRET = os.getenv("FACEBOOK_APP_SECRET")

SKEY = os.environ.get("SKEY")
SKEY = os.environ.get("SKEY", '111111111111111')

LDAP_LOGIN = True
LDAP_HOST = os.environ.get('LDAP_HOST')
Expand Down
2 changes: 1 addition & 1 deletion lablog/interfaces/sensornode.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Node(Interface):
id = field.Char()

def data(self, data=None):
j = aes.decrypt(data, KEY)
j = aes.decrypt(data.ljust(160), KEY)
j = json.loads(j)
logging.info(j)
return j
Expand Down

0 comments on commit fb2e92f

Please sign in to comment.