Questions tagged [encryption]
The encryption tag has no usage guidance.
244
questions
0
votes
0
answers
100
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 ...
-1
votes
1
answer
454
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 ...
1
vote
0
answers
52
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 ...
0
votes
0
answers
109
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 ...
0
votes
2
answers
180
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.
1
vote
0
answers
198
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 ...
0
votes
0
answers
120
views
Data Extension masking in marketing cloud
I am trying to mask Data Extension records followed by PERSONAL INFORMATION PROTECTION ACT (Korea regulations). In this case, I need to mask as below;
For example,
Customer Name: John -> J**n
...
0
votes
1
answer
232
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 ...
0
votes
1
answer
141
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 "?
1
vote
1
answer
370
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 ...
0
votes
1
answer
63
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 ...
0
votes
2
answers
478
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 ...
0
votes
1
answer
315
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/...
0
votes
1
answer
562
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 ...
1
vote
1
answer
2k
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(...
-1
votes
1
answer
39
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 ...
0
votes
0
answers
92
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 ...
0
votes
1
answer
803
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 ...
0
votes
1
answer
848
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:/...
2
votes
0
answers
94
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 ...
-1
votes
1
answer
213
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 ...
0
votes
1
answer
1k
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....
-2
votes
1
answer
120
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{
...
0
votes
1
answer
195
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 ...
1
vote
1
answer
308
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 ...
0
votes
1
answer
546
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) ...
0
votes
1
answer
385
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(...
1
vote
1
answer
172
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 ...
0
votes
1
answer
155
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 ...
0
votes
1
answer
458
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 ...
0
votes
0
answers
568
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 ...
0
votes
0
answers
148
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": [{
&...
2
votes
1
answer
247
views
Shield encrypted field, unencrypted results?
If a field is encrypted with Shield, can we get the unencrypted value with Apex classes/SOQL statements?
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 ...
0
votes
1
answer
692
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.
...
0
votes
1
answer
514
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?
0
votes
1
answer
603
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 ...
1
vote
1
answer
681
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 ...
0
votes
1
answer
391
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 ...
0
votes
0
answers
225
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 ...
1
vote
1
answer
292
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 ...
0
votes
1
answer
876
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?
1
vote
1
answer
145
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, ...
1
vote
0
answers
248
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 ...
1
vote
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 ...
0
votes
1
answer
485
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 ...
0
votes
0
answers
1k
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 ...
0
votes
0
answers
115
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 ...
0
votes
1
answer
776
views
Decrypting a PGP File from SFTP Server
Problem
The client that I am working with is asking us to encrypt (Using PGP or GPG) files from marketing cloud and insert them onto an SFTP Server. Then, we should create a separate Node JS ...
0
votes
1
answer
2k
views
Populate data extension with SH-256 encrypted email addresses
I have a project where I need to deliver hashed email addresses to a vendor for the purposes of data matching. The vendor accepts SHA-256 hashed emails. Is there a way to populate a data extension ...