def encryptPassword(self, login, passwd):
<EOL>binaryKey = b64decode(config.GOOGLE_PUBKEY)<EOL>i = utils.readInt(binaryKey, <NUM_LIT:0>)<EOL>modulus = utils.toBigInt(binaryKey[<NUM_LIT:4>:][<NUM_LIT:0>:i])<EOL>j = utils.readInt(binaryKey, i + <NUM_LIT:4>)<EOL>exponent = utils.toBigInt(binaryKey[i + <NUM_LIT:8>:][<NUM_LIT:0>:j])<EOL>digest = hashes.Hash(hashes.SHA1(), backend=default_backend())<EOL>digest.update(binaryKey)<EOL>h = b'<STR_LIT:\x00>' + digest.finalize()[<NUM_LIT:0>:<NUM_LIT:4>]<EOL>der_data = encode_dss_signature(modulus, exponent)<EOL>publicKey = load_der_public_key(der_data, backend=default_backend())<EOL>to_be_encrypted = login.encode() + b'<STR_LIT:\x00>' + passwd.encode()<EOL>ciphertext = publicKey.encrypt(<EOL>to_be_encrypted,<EOL>padding.OAEP(<EOL>mgf=padding.MGF1(algorithm=hashes.SHA1()),<EOL>algorithm=hashes.SHA1(),<EOL>label=None<EOL>)<EOL>)<EOL>return urlsafe_b64encode(h + ciphertext)<EOL>
Encrypt credentials using the google publickey, with the
        RSA algorithm