Hello Team,
How to implement encryption and decryption using python script in apigee edge cloud and I tried with some sample code but iam getting errors about installing module.
Please suggest how to install python modules in apigee edge cloud.
Thank you
EDIT
Hello Dino,
I referred this link https://github.com/DinoChiesa/ApigeeEdge-CustomPolicy-RsaCrypto to create an APi Proxy and its working.
We updated above proxy using our public key and private key to encrypt and decrypt. the data but it is not working. Could you please help on this.
is this jar is suitable for all types(like sha 256...)of rsa encryption and decryption?
Solved! Go to Solution.
Hi sravani
"malformed sequence in RSA private key"
Indicates that the private key you are using, is malformed.
Compare it to the formats of the keys I included in the demonstration. Something is off. By comparing you may be able to see what is different.
The "bouncycastle" is just a library. The important thing is the message it is giving you. That message indicates the private key is not correctly formatted. Your private key should look something like this:
-----BEGIN PRIVATE KEY----- MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDXk9k01JrhGQf1 4B4nymHntaG9SYA2kEQOo/RK4fM2XcebFsSJQ8GgE1AC1GlWU5YzS34WW0w5GMZe ... hHYu+QiRZnABbpD9C1+Akh4dG97Woyfd5igBsT1Ovs9PDCN0rO4I2nJHrNLJSPte OtpRWoF2/LERvp6RNeXthgs= -----END PRIVATE KEY-----
I do not suggest that you post your private key here. It's a secret, it's intended to be a secret. The security of the encryption depends on it remaining a secret. But... if you could post the STRUCTURE of your private key, that might help us.
But maybe better is to just insure that your private key looks exactly like the demo key.
also: just a side question, how did you create your own private key? What did you do, to generate that private key? Where did you get it?