The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
15 views

Am i using the right encryption method for oauth 1.0

I am using oauth1.0 to connect to an external API from salesforce. I am using http://oauth.net/core/1.0/#nonce as reference point. To obtain a Request Token, the Consumer sends an HTTP request to ...
2
votes
2answers
457 views

How to encrypt and decrypt a String in Apex using the Crypto class

Please provide apex code examples to encrypt and decrypt a string using all of the supported encryption algorithms (AES128, AES192, and AES256). I searched for clear and concise code examples on this ...
4
votes
2answers
107 views

Workaround for AES decryption limit of 1 MB

We ran into the problem that obviously only 1 million byte (or 1MB) may be passed into the decrypt function. Does anybody know a workaround for this problem? There are JavaScript frameworks but they ...
3
votes
1answer
165 views

Verifying a signature in Apex

The apex crypto class is great but it appears to only be able to sign content. Is there any way to verify a signature in apex? I would expect a Crypto.verify() method but it doesn't appear to exist. I ...
6
votes
1answer
670 views

Connect apex and Google API using JWT to retrieve Oauth 2.0 token

I have been trying to connect Salesforce and Google API using server to server application. Intent :- To communicate data between Salesforce and Google Spreadsheet which is hosted in Google Sites ...
0
votes
1answer
379 views

Crypto Class & Private/Public Keys & Certificate

Has anyone used AES256 to encrypt and store Highly confidential data in force.com Database. What are the steps to follow? Help me with some insights into private/public keys and certificates, which of ...
2
votes
2answers
246 views

Salesforce OAuth and Client Network Configuration Changes

Can this be true that if we use Salesforce OAuth to grant login to a desktop app, then after validating and receiving tokens -> access, refresh etc) if client workstation switches Internet Connections ...
2
votes
1answer
501 views

Get first 16 Bytes from Blob object decoded from Base64

I have to call an external REST service and I have to decode the response. From external service documentation I think I have to decode the response with AES algorithm in this way: public static ...
1
vote
1answer
718 views

Why do I get 'PKIX path building failed' exception with my callout?

Error message :PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target Hello all please see the above ...
1
vote
1answer
760 views

Oauth 1.0 oauth_signature generation and header creation for the authentication of external system

Can anybody help me with the oauth 1.0 oauth_signature generation from the client secret and consumer key? I have got client secret and consumer key along with the oauth token. Just need helping hand ...
3
votes
2answers
3k views

Sample Java class to decrypt AES128 encryption

Looking for some sample Java code that decrypts AES encrypted string. I'm trying to encrypt using Apex's Crypto class and decrypt using Java.
9
votes
1answer
494 views

Mimic MySQL AES_ENCRYPT in Apex

I am trying to mimic the MySQL AES_ENCRYPT function in Apex code. However the issue I am having is that MySQL doesn't use an initialization vector. Is there a way to replicate this behavior in Apex? ...