This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import base64 | |
| import os | |
| import rsa | |
| def load_priv_key(path): | |
| path = os.path.join(os.path.dirname(__file__), path) | |
| with open(path, mode='rb') as privatefile: | |
| keydata = privatefile.read() | |
| return rsa.PrivateKey.load_pkcs1(keydata) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import getpass | |
| import hashlib | |
| import json | |
| import time | |
| import datetime | |
| import re | |
| import os | |
| import RPi.GPIO as GPIO | |
| from operator import itemgetter |