From: Bryan Bonvallet Date: Sun, 18 May 2014 17:49:22 +0000 (-0400) Subject: fixing typo X-Git-Tag: release-20150131~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f9c4d73421d6a6bc0cb6a51a3bae3bb6fb37d8f1;p=oweals%2Fkarmaworld.git fixing typo --- 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()