<filename>tools/check_encrypted_hash.py
import sys
sys.path.insert(0, './app/app')
from tools import decrypt, check_hash    # noqa

# sys.argv[1] = plain text
# sys.argv[2] = hash to compare
print(check_hash(sys.argv[1], decrypt(sys.argv[2])))

<filename>tools/check_encrypted_hash.py
import sys
sys.path.insert(0, './app/app')
from tools import decrypt, check_hash    # noqa

# sys.argv[1] = plain text
# sys.argv[2] = hash to compare
print(check_hash(sys.argv[1], decrypt(sys.argv[2])))

# noqa # sys.argv[1] = plain text # sys.argv[2] = hash to compare