8000 fix: add information on PKCS1v15 by frankyn · Pull Request #3236 · GoogleCloudPlatform/python-docs-samples · GitHub
[go: up one dir, main page]

Skip to content

fix: add information on PKCS1v15 #3236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 1, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
BA68
Diff view
1 change: 1 addition & 0 deletions storage/signed_urls/generate_signed_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def generate_signed_url(service_account_file, bucket_name, object_name,
credential_scope,
canonical_request_hash])

# signer.sign() signs using RSA-SHA256 with PKCS1v15 padding
signature = binascii.hexlify(
google_credentials.signer.sign(string_to_sign)
).decode()
Expand Down
0