Skip to content

Commit de1d874

Browse files
authored
Update src/apify/_crypto.py
1 parent b058ca3 commit de1d874

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/apify/_crypto.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,16 @@ def encode_base62(num: int) -> str:
175175

176176
@ignore_docs
177177
def create_hmac_signature(secret_key: str, message: str) -> str:
178-
"""Generates an HMAC signature and encodes it using Base62. Base62 encoding reduces the signature length.
178+
"""Generate an HMAC signature and encodes it using Base62. Base62 encoding reduces the signature length.
179179
180180
HMAC signature is truncated to 30 characters to make it shorter.
181181
182182
Args:
183-
secret_key (str): Secret key used for signing signatures
184-
message (str): Message to be signed
183+
secret_key: Secret key used for signing signatures.
184+
message: Message to be signed.
185185
186186
Returns:
187-
str: Base62 encoded signature
187+
Base62 encoded signature.
188188
"""
189189
signature = hmac.new(secret_key.encode('utf-8'), message.encode('utf-8'), hashlib.sha256).hexdigest()[:30]
190190

0 commit comments

Comments
 (0)