172ee1d15de08df39fd41ab685cca82fcc2c3145,kms/api-client/asymmetric.py,,encryptRSA,#Any#Any#Any#,63
Before Change
pad = padding.OAEP(mgf=padding.MGF1(algorithm=hashes.SHA256()),
algorithm=hashes.SHA256(),
label=None)
ciphertext = public_key.encrypt(message.encode("ascii"), pad)
ciphertext = base64.b64encode(ciphertext).decode("utf-8")
return ciphertext
// [END kms_encrypt_rsa]
// [START kms_sign_asymmetric]
After Change
pad = padding.OAEP(mgf=padding.MGF1(algorithm=hashes.SHA256()),
algorithm=hashes.SHA256(),
label=None)
return public_key.encrypt(plaintext, pad)
// [END kms_encrypt_rsa]
// [START kms_sign_asymmetric]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 172ee1d15de08df39fd41ab685cca82fcc2c3145
Time: 2018-09-28
Author: d.sanche14@gmail.com
File Name: kms/api-client/asymmetric.py
Class Name:
Method Name: encryptRSA
Project Name: tyarkoni/pliers
Commit Name: 613f3e2faf826b4b81454f1ee24cf4a611598261
Time: 2019-03-22
Author: tyarkoni@gmail.com
File Name: pliers/stimuli/image.py
Class Name: ImageStim
Method Name: get_bytestring
Project Name: nilearn/nilearn
Commit Name: fe2b71071f871294b869f0314f89e4ca02469ab7
Time: 2020-10-08
Author: jerome@dockes.org
File Name: nilearn/reporting/html_report.py
Class Name:
Method Name: _embed_img