Skip to main content
New
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [encryption]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
64 views

Apex decrytion error: "System.SecurityException: Given final block not properly padded. Such issues can arise if a bad key is used during decryption." [duplicate]

I am having some problem implementing a decryting function using a secret key and hash iv. I have a working code snippet in java script, but when I try to implement the function in apex, I get this ...
Ethan Lin's user avatar
0 votes
1 answer
58 views

Group By fails with invalid field - How to handle encrypted fields?

I want to find every record that occurs at least two times. The result should be something like this MyLineItem__c Type__c ItemValueString__c Count Foo Boo Booze 2 Yal Bal Jazz 2 Xul Xal Xray 3 I ...
surfmuggle's user avatar
2 votes
1 answer
196 views

Validating Hubspot webhook request signature in Apex

I'm new here and I'm hoping to get some guidance on the proper way to write this in Apex. I have a webhook coming from Hubspot and I'm receiving it successfully in Salesforce using an apex class ...
Sharina Grace's user avatar
0 votes
0 answers
157 views

Decryption of Data failing in API calls

We have an Apex method in our Org which is exposed for a GET API request. The data is encrypted with AES256 before sending. However from the receiver end (Same Org for testing purpose), decryption of ...
Brav's user avatar
  • 820
0 votes
2 answers
2k views

Is all our Salesforce data Encrypted At Rest in various Orgs?

We are going through a thorough security audit and I cannot get a straight answer from Salesforce, just boilerplate with lots of sales jargon. Due to acquisitions, we have lots of Orgs. In our orgs ...
ElHombre55's user avatar
1 vote
0 answers
84 views

Ideas for Rotation of AES Encryption Keys

We are currently using AES 256 encryption with the Apex Crypto class. I need to implement a solution for key rotation. They keys themselves are stored in protected custom metadata in a managed ...
Brooks Johnson's user avatar
0 votes
0 answers
162 views

Having issue in decrypt the data using Cipher Class

I have a requirement to encrypt data in Salesforce Apex, and the other team will decrypt the data using a common private key. However, I made some modifications to the code. below is the code to ...
Sahil Malhotra's user avatar
0 votes
2 answers
297 views

PGP encryption/decryption of a text file in salesforce

I want to encrypt a text file with bank details and want some specific user or team can decrypt those with the private key. How to achieve this using PGP.
Alok's user avatar
  • 37
1 vote
0 answers
306 views

Problems signing with Crypto.signWithCertificate()

I am trying to connect with an external service, which in its documentation asks me to generate a CMS from an XML and a certificate and private key with openssl : In salesforce use "Certificate ...
Martin Aguilera's user avatar
0 votes
1 answer
305 views

File encryption using Crypto in apex

I am trying to encrypt and decrypt file using apex but getting below error while decryption of file. Goal is to encrypt the file in salesforce and send it to third party. Third party should be able to ...
Muzammil Bajaria's user avatar
0 votes
1 answer
164 views

how can i disable the Encrypt change data capture flag

how can i disable the flag in Encryption Policy - " Encrypt change data capture events and platform events "?
Andrea Vitangeli's user avatar
1 vote
1 answer
422 views

Decrypt Symmetrically/Asymmetrically Encrypted Data in MS SQL (T-SQL) Server via Apex Crypto Class

Hope you're doing well. Recently, I have been working on a project and haven't been able to find a solution to this problem. What I want to achieve is: To decrypt the data in Apex using the crypto ...
Assadullah Shaikh's user avatar
0 votes
1 answer
66 views

Encryption Key with Puttygen - AUtomation Extracts

my end goal is to be able to utilize Tracking Extracts. To do this, I'm needing to move a file from the Safehouse to my FTP folder, decrypt it, and then export/move into a DE etc. My problem is the ...
chorlesbarkley7's user avatar
0 votes
2 answers
716 views

Encrypt in Marketing Cloud - Decrypt in Salesforce

I'm reading the documentation and I'm confused because functions in MC and SF have a different number of parameters (salt and password in MC, key in SFDC). Salesforce offers 3 versions of AES ...
Al Cher's user avatar
  • 261
0 votes
1 answer
355 views

Eventbus relay error: Encryption not supported in Offcore Runtime

I've tried setting up the new Salesfoce -> AWS Eventbridge integration using the new event bus relay. This is the guide I followed: https://resources.docs.salesforce.com/rel1/doc/en-us/static/pdf/...
TNelen's user avatar
  • 1
0 votes
1 answer
702 views

Where do I get the Salesforce Marketing Cloud "Public Key" for PGP Encryption?

I remember this used to be "Google-able". For some reason, I can't seem to locate the answer via Google. I have a client that needs to send over their data to Marketing Cloud's SFTP site and ...
Mike Marks's user avatar
1 vote
1 answer
3k views

String to Blob and Blob to String conversion during encryption/decryption

I'm getting the error when I'm trying to decrypt an encrypted value in line 7. Blob exampleIv = Blob.valueOf('Example of IV123'); Blob key = Crypto.generateAesKey(128); Blob data = Blob.valueOf(...
merve-bulut's user avatar
-1 votes
1 answer
48 views

Is it possible for two instances of the SHA256 encryption to be equal?

We are using SHA256 encryption in an email, the idea is that the Subscriber key will be the email address, and when it comes to click through urls we’d include the hashed value of the email (using ...
Hannan S's user avatar
0 votes
0 answers
122 views

Integration batch job + Data Encryption : Need some suggestion

I have written a batch job to push Open Case record every one hr from Salesforce to External system using REST API. I need to Encrypte the data and push it to the external system. Below is the Class ...
Tamil's user avatar
  • 724
0 votes
1 answer
970 views

Encrypt string with supplied Hex key

I am trying to encrypt a string using AES256 then converting it to Hex. I am supplied a Hex key so I tried going online and converting the Hex to text and using that value in my class but I keep ...
Phuc's user avatar
  • 125
0 votes
1 answer
933 views

Verify ECDSA signature from Ethereum signed message hash

For my use case I need to verify a ECDSA signature from a signed Ethereum message. From the front end, the message is first converted into a Sha3/keccac256 hash using web3.js with below method: https:/...
0xFlem's user avatar
  • 11
2 votes
0 answers
103 views

How can you build detokenization of data coming into Salesforce via a custom API integration?

Background: We are building an API integration fully custom between Salesforce and an internal resource to return PII data onto our Case record on page load. The internal resource will return ...
Ward Wood's user avatar
0 votes
1 answer
268 views

Salesforce Shield Encryption - official video showing invalid information

I was looking into Salesforce Shield Encryption. Apparently Salesforce Shield Encryption does not mask any data, but encrypts the data at rest, which means only at the database level. Anyone who has ...
DevelBase2's user avatar
0 votes
1 answer
2k views

AES Encryption in Ampscript

I want to encrypt a string using AES encryption in ampscript. I am using EncryptSymmetric function that uses AES algorithm as mentioned in the following documentation : https://developer.salesforce....
user110045's user avatar
-2 votes
1 answer
133 views

Need Help on Encryption and decryption logic [closed]

I wanted to write exact below java code in apex. I am aware of EncodingUtil.base64Decode() and Crypto class method in SF. But this byte array and Cipher, etc , am not aware of it. class Encyrpt{ ...
Bhushan Charde's user avatar
0 votes
1 answer
213 views

Encrypt the FormURL varaible on form Submission [closed]

I have create the contact us cloud page using the ampscript, created two cloud page one is the main page which pre-populate the form values and on form submission it will redirect to thank you page ...
Darshan Jain's user avatar
1 vote
1 answer
333 views

Implementing encryption within Aura Component

I am very familiar with Apex Crypto class and it works pretty well. Now that I am trying to make my Aura component work more efficiently without making Server calls to encrypt/decrypt a large JSON ...
Austin Evans's user avatar
0 votes
1 answer
619 views

Why are Custom object Name Field and date fields (Deterministic Encryption) not allowed to be encrypted?

I read a lot of documentation regarding Shield Platform Encryption and I can't find any statement in regards to why some of these custom Object Name Field and date fields (Deterministic Encryption) ...
Tejesh P's user avatar
0 votes
1 answer
463 views

Error While Decrypting the URL

I'm facing below error while decrypting the URL. "System.StringException: Unrecognized base64 character: %" Below is my Encryption & decryption code. public static string encryption(...
Soumi's user avatar
  • 85
1 vote
1 answer
194 views

How to encrypt customer data in managed package so that the package developer cannot see it

I have a requirement to store sensitive customer information in a protected custom setting in our installed package. From my understanding through this answer the information should be encrypted ...
TemporaryFix's user avatar
  • 2,946
0 votes
1 answer
171 views

How to use encrypted subscriber_key from abandoned cart DE in journey?

Abandoned cart configuration has been setup in Marketing cloud. Tracking code has been added in the website and all the necessary implementations are carried out on Marketing cloud end. Behavioral ...
ScarletWings's user avatar
0 votes
1 answer
536 views

How to encrypt sent data using the XMLHttpRequest and retrieve it via AMPscript?

Our client is looking for a preference center where there is no page refreshing, the user click on submit and a message pops up I did not do this before, so I made an example to achive this, with a ...
TaouBen's user avatar
  • 154
0 votes
0 answers
628 views

Incorrect token in Salesforce Marketing Cloud (401)

I would like the get the External Key of the Data Extension related to the Journey Builder. From this step, I need to use the REST API integration and WSProxy. Then, to call the REST API, I need to ...
Ben Inm's user avatar
  • 23
0 votes
0 answers
193 views

Encryption data via API

I have a scenario where they have to pass data to Marketing Cloud via API, so I created an API call that allows me to insert records into a DE, in the following JSON: { "items": [{ &...
Maria Migliaccio's user avatar
2 votes
1 answer
287 views

Shield encrypted field, unencrypted results?

If a field is encrypted with Shield, can we get the unencrypted value with Apex classes/SOQL statements?
hoviwan's user avatar
  • 23
4 votes
2 answers
2k views

How can I encrypt a string in Apex in a way that an external system can decrypt using C#?

Our security team has found an issue in our lightning experience site where a link to an external system is adding the account # in the URL. That system is then using that account # to display data on ...
Ryan Werner's user avatar
0 votes
1 answer
723 views

Passing Client Id and Client Secret in URL as Encrypted String for AppExchange App

We are developing an AppExchange application which integrates with external application .Every customer has a connected app because of different branding and different and different callback URLs. ...
Lets Rewind's user avatar
0 votes
1 answer
596 views

Is it possible to decrypt a message in APEX using asymmetric RSA algorithm? [closed]

I know that Salesforce supports symmetric AES-based encryption(Crypto Class). What if I need to decrypt a message in salesforce which is encrypted using asymmetric RSA?
Jagadeesh's user avatar
0 votes
1 answer
763 views

Encryption for HTTP Rest Call

I am trying a simple rest call from one instance of salesforce to another. Server Endpoint URL is on https. I want to confirm, will making such call to https endpoint alone, encrypt the Endpoint ...
Ashish's user avatar
  • 3
1 vote
1 answer
779 views

Scratch Org setup Deterministic Encryption

I get the following error when pushing my source to a scratch org. Deterministic encryption not available I have a permission set assign to my scratch org user that gives me ManageEncryptionKeys. I ...
Tyler Zika's user avatar
  • 2,882
0 votes
1 answer
402 views

Bring Your Own Key (BYOK) - Configure Marketing Cloud

Before having configured the DB encryption with BYOK (Bring your own key) it is possible to work, develop and configure on MC or it is not possible to do anything before having done DB encryption with ...
Nap's user avatar
  • 71
0 votes
0 answers
251 views

Secure Data transport to external system

I have a requirement to transmit the integration data via REST API to a legacy system. The client need is to have the data transmission done securely. Wanted to check what would be the best approach ...
Quddus's user avatar
  • 177
1 vote
1 answer
343 views

Use of the managed Ini Vector in the Apex Crypto Class

I am wondering about when to use the managedIv method in the Apex crypto class. I noticed that if I use the managedIv method with a key from the Apex generateAESKey() method my results are always a ...
Brooks Johnson's user avatar
0 votes
1 answer
939 views

Bad Base64 encoding error while creating SSH key in Marketing Cloud

Does anyone see this error while uploading a public PGP key to create SSH key for SFMC SFTP?
Pardeep Singh's user avatar
1 vote
1 answer
153 views

Replicating PHP's bin2hex() function

I am beginning an integration project where the password needs to be encrypted and they have given the php example of using bin2hex(md5('password')). I am trying to replicate php's bin2hex() function, ...
awh01's user avatar
  • 141
1 vote
0 answers
256 views

PGP encryption natively or library for Apex

Is there any way to support PGP encryption in Salesforce. I have looked into this question PGP Encryption in Apex but just wanted to confirm is there any new changes that might have allowed PGP in ...
Manjot Singh's user avatar
  • 3,516
2 votes
1 answer
3k views

Sending large Files to external system

From Salesforce, I am sending files to AWS Server. I am able to successfully achieve it if the file is under 3 to 4 MB. When I try with more than 6 to 7 MB, the file is getting reached to the AWS ...
Nagaraj Ramachandran's user avatar
0 votes
1 answer
530 views

Default encryption for CloudPagesURL()

My client would like to know which encryption does CloudPagesURL() use to encrypt the parameters transferred to the Cloud pages. I am talking about the encryption used to transfer parameters to a ...
Ivan Dobrić's user avatar
0 votes
0 answers
2k views

How to encrypt to send request to CCAvenue payment gateway

I am trying to send a request to CCAvenue payment gateway, but when I encrypt the data and send them I am getting an error because of wrong encryption. I came to know that its bcz of wrong encryption ...
Prasad Vivek Kothalanka's user avatar
0 votes
0 answers
118 views

How to AES encrypt a link within Marketing Cloud and decrypt it in a third Party system [duplicate]

I currently have the following problem: I am working in a Marketing Cloud Email and need some of my customers attributes to be stored in a Json and then to be aes-256 encrypted. The resulting string ...
Nora Drexler's user avatar

1
2 3 4 5