From f9c4d73421d6a6bc0cb6a51a3bae3bb6fb37d8f1 Mon Sep 17 00:00:00 2001 From: Bryan Bonvallet Date: Sun, 18 May 2014 13:49:22 -0400 Subject: [PATCH] fixing typo --- karmaworld/utils/filepicker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/karmaworld/utils/filepicker.py b/karmaworld/utils/filepicker.py index 3bf0040..6f3af45 100644 --- a/karmaworld/utils/filepicker.py +++ b/karmaworld/utils/filepicker.py @@ -5,7 +5,7 @@ import base64 from hashlib import sha256 import os -FILEPCIKER_SECRET = os.environ['FILEPCIKER_SECRET'] +FILEPICKER_SECRET = os.environ['FILEPICKER_SECRET'] def encode_fp_policy(policy): """ Return URL-safe Base64 encoded JSON Filepicker policy. """ @@ -25,6 +25,6 @@ def sign_fp_policy(policy): """ Return a signature appropriate for the given encoded policy. """ # https://developers.inkfilepicker.com/docs/security/#signPolicy # hash it up, bra! - engine = hmac.new(FILEPCIKER_SECRET, digestmod=sha256) + engine = hmac.new(FILEPICKER_SECRET, digestmod=sha256) engine.update(policy) return engine.hexdigest() -- 2.25.1