Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [decrypt]

The tag has no usage guidance.

-1
votes
2answers
53 views

AES128: Apex Encryption to Java Decryption Checksum Generation

I am trying to integrate payment gateway into salesforce site, i have used the AES128 Encryption and same is use for decryption but while decryption i have used java code where i got the decrypt value ...
1
vote
1answer
80 views

Verify POST messages signed with SHA1 in Apex

I have created a REST Endpoint (exposed on force.com site) to allow Webhook integration. The third party service which POSTS data signs requests including the JSON-stringified body using SHA1 ...
2
votes
0answers
48 views

Decrypt challenge in Salesforce from external system in 2FA

We are integrating salesforce with external system. External system has two factor authentication process. We are calling first URL to get challenge. - Working fine. We need to decrypt challenge in ...
0
votes
1answer
36 views

Decrepyt Password Field

I want to Decrypt the password of Contact portal. But In my Code Unrecognized based 64 :* error occured. I did that things first timei.e didnt understand what is the main problem. maybe my code ...
0
votes
1answer
217 views

AES128 decryption. Invalid private key. Must be 16 bytes [duplicate]

I get an encrypted data from external service (AWS Cognito). With the following code, I get the 'Invalid private key. Must be 16 bytes' error. String data = '...
1
vote
1answer
687 views

decryption is throwing System.SecurityException error in apex class

I'm creating community site and storing the password in cookies in the form of encryption. Now I've to decrypt that password. but decryotion is not working. getting below error. System....
0
votes
1answer
670 views

How to decrpt the MCRYPT_RIJNDAEL_256 encrypted value in salesforce.

How to decrpt the MCRYPT_RIJNDAEL_256 encrypted value in salesforce. Let me explain saelsforce getting encrypted (MCRYPT_RIJNDAEL_256, ECB mode) value from external website. So, we need to decrypt ...
0
votes
1answer
817 views

Encryption and Decryption in apex Salesforce Using Crypto Class

The below code works sometimes and sometimes it gives an error. The error is like this. Input length must be multiple of 16 when decrypting with the padded cipher. I am getting an error in decryption ...
1
vote
1answer
294 views

Related to Digital signiature

Something related to Digital signature if we have a doc in sales-force and needs to be digitally signed, which involves digital certificates.. and how we can use crypto class of apex in this. also ...
0
votes
0answers
370 views

Apex Encryption to AMPscript Decryption

I receive a string encrypted using the Apex function Crypto.encryptWithManagedIV() using AES256 as a url parameter, and I need to be able to decrypt this string on a marketing cloud landing page. I ...
0
votes
1answer
703 views

How decrypt MD5

I'm try decrypt one string in format MD5 but I have not been able, this the code: String e = 'test@testcom'; Blob b = Crypto.generateDigest('MD5', Blob.valueOf(e)); System.debug(EncodingUtil....
0
votes
0answers
52 views

AMP Script Marketng Cloud EncryptSymmetric [duplicate]

I would like to encrpt a emailaddress with AES and decrypt with a other java appclication. I try %%[SET @encData=EncryptSymmetric(emailaddr, "AES;mode=cbc;padding=pkcs7", @null, "1111222233334444", ...
1
vote
0answers
717 views

How to decrypt encrypted text generated using generateDigest method and SHA256 algorithm

I have a DOB field(Type-Text) in Contact object, In Before insert event i have encrypted and show in encrypted form in page layout. contact con = [select id, DOB__c From contact where id = '...
0
votes
1answer
531 views

CCAvanue Payment Gateway Integration with Salesforce Apex

CCAvenue does not provide integration kit for Salesforce Apex language. They provide Asp.net, Java, NodeJS, iOS, Android, Windows. How do we encrypt and decrypt data and make request for CCAvenue ...
1
vote
1answer
856 views

Subject line AMPscript issue

I am pulling in First Name from subscriber information but it has been encrypted before the data is pushed up to ExactTarget, I need to use AMPscript to decrypt and check the data to make sure it is ...
0
votes
1answer
148 views

AES decyption with PKCS7 Padding?

I have encrypted some Text in Java using PKCS7. In the Crypto class it is written that PKCS5 is supported, but is there any possibility using PKCS7? Or do you know a possibility that it would work (...
1
vote
0answers
85 views

Decryption of something encrypted with Java

I have a little problem. I want to decrypt a Text that I encrypted with a method written in Eclipse using Java. When i try to decrypt it using my IV and my key, i get an error (System....
0
votes
1answer
80 views

Get an Error Message when sending Email to Sandbox

I want to send an Email to my salesforce Account and the update Account informations given in the Email. My problem now: The Email is Encrypted. So i wrote an Apex class and now I'm trying to ...
1
vote
1answer
94 views

Issue with decryption using the key in a protected custom setting

I'm working on an app with a base managed package and two extension packages. I need to encrypt a user-entered password as a part of post-installation setup (done right after the base package is ...
1
vote
0answers
250 views

Decode Signature

I've one signature field containing encoded values like 'iVBORw0KGgoAAAANSUhEUgAAApAAAACNCAYAAAAAYko8AAAAHGlET1QAAAACAAAAAA...' and i want to restore it back and put them into a list and display the ...
2
votes
0answers
425 views

Decrypt base64 signature

I have to decode a long Signature field value to generate signature image. Please find code below. Can someone help me here? public class AccountPDF111 { Public void AccountPDF111(){} Public ...
3
votes
1answer
51 views

Any work-around for the lack of XMLSignature implementations?

As explained in this unimplemented for 4 years idea, Apex does not expose any XMLSignature implementations that could be used for example to validate the X509 signature on some XML. So: Does Apex ...
0
votes
0answers
1k views

AES 256: Apex Encryption to Java Decryption

Could you please help how to decrypt the data in java. It was encrypted by SFDC Apex (AES 256) Blob cryptoKey = Crypto.generateAesKey(256); Blob data = Blob.valueOf('Test data to encrypted'); Blob ...
3
votes
0answers
601 views

Valid email string decrypted with AMPscript DecryptSymmetric() returns false for isValidEmail()

I have the following ampscript above a landing page unsubscribe form. It appears as though the EncryptSymmetric from the test email and DecryptSymmetric on the landing page are working as expected, ...