From dcefec7b992d1276346c9577543b416ee1971554 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 22 Jul 2018 01:51:45 +0200 Subject: [PATCH] Cleanup old stuff (#589) --- hassio/api/utils.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/hassio/api/utils.py b/hassio/api/utils.py index eaedc7dbb..b3ce8a4db 100644 --- a/hassio/api/utils.py +++ b/hassio/api/utils.py @@ -1,6 +1,5 @@ """Init file for HassIO util for rest api.""" import json -import hashlib import logging from aiohttp import web @@ -94,9 +93,3 @@ async def api_validate(schema, request): raise RuntimeError(humanize_error(data, ex)) from None return data - - -def hash_password(password): - """Hash and salt our passwords.""" - key = ")*()*SALT_HASSIO2123{}6554547485HSKA!!*JSLAfdasda$".format(password) - return hashlib.sha256(key.encode()).hexdigest()