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 [encryption]

The tag has no usage guidance.

0
votes
1answer
26 views

TDE In marketing Cloud

I have been researching TDE(as my understanding is that FLE is going away) for Marketing Cloud, and came across this Link. It mentions "TDE within the Marketing Cloud environment requires a dedicated ...
4
votes
0answers
27 views

SFMC public key missing `encrypt` flags?

The ExactTarget SFMC Public Key referred to in their FTP instruction guide points to a key that doesn't seem to be set up properly for encryption of FTP files. $ curl https://members.exacttarget.com/...
1
vote
1answer
29 views

How to add a generic method for Encryption and decryption when using multiple times in the code?

I am trying to encrypt two fields when record is submitted using VF page. As there are multiple functions in my class I am encrypting and decrypting multiple times as needed. Is there a way we can ...
0
votes
0answers
44 views

System.SecurityException: last block incomplete in decryption

I'm getting the error when I'm trying to decrypt an encrypted value. Using the standard method from Crypto Class : Encrypt and Decrypt public static String encryptValue(String customKey,String ...
1
vote
1answer
37 views

Any way out of “Encryption can't be enabled for fields referenced in the custom formula fields”?

I have a formula field based on a date field, and I want to have the date field encrypted using Shield Platform Encryption. But when I try to turn the encryption on I get: Error on fields update ...
1
vote
2answers
85 views

Case Insensitive - GA Summer 19?

I have been doing some digging on case Insensitive encryption. I am reading this: Get Exact Matching with Case-Insensitive Deterministic Encryption (Generally Available) And it looks like this ...
0
votes
2answers
88 views

Has anyone enabled Transparent Data Encryption (TDE) in Marketing Cloud?

I've submitted a support ticket to enable Transparent Data Encryption (TDE) on a Marketing Cloud instance. Since all of the encryption happens on the backend as opposed to Field Level Encryption (FLE) ...
3
votes
1answer
53 views

Reading into Shield Encrypted Fields from Salesforce Marketing Cloud

We are currently integrated with the core platform through marketing cloud connect and we are using salesforce data as an entry source in most of our journeys. My question is, if we were to go with ...
1
vote
1answer
42 views

See reason why records failed to encrypt

I am going through an encryption effort in a SF sandbox. While encrypting, I noticed a few inconsistencies. For example, I got an email mentioning: Sandbox: Unable to Complete Encryption Task. I am ...
0
votes
1answer
20 views

Loading Encrypted Records

I have been looking to see what other people have experienced regarding loading records into an environment with encryption enabled. If I were to use a tool such as DBamp, to load records into an an ...
0
votes
1answer
32 views

Encrypt Formula Fields with Platform Encryptiion

Are any types formula fields able to be encrypted via platform encryption? I have been looking for options, and so far, I have been unsuccessful in locating any documentation. If not, what have you ...
0
votes
2answers
50 views

Encryption Impact - Enabling Encryption vs Encrypting Data

This is more of a curiosity question. I have went through and encrypted ~50 fields in a sandbox with existing data. There are more fields I would like to encrypt, but they will take some more work ...
0
votes
1answer
21 views

Encryption Question regarding SF generating Tenant Secret

From a testing perspective for platform encryptuion, if I follow this article, and hit the "generate tenant secret" button, am I good to start encrypting? In the BYOK documentation, it mentions ...
1
vote
1answer
71 views

Salesforce BYOK Strategy

So - I have been doing research regarding Salesforce platform encryption, and am struggling to find the actual "button pushing" steps to accomplish the BYOK plan. Please correct these following steps ...
0
votes
1answer
40 views

Classic Master Encryption Keys in Apex

I'm using the Crypto class but want to leverage the built-in Master Encryption Key store instead of saving my own AES keys somewhere in the database. Is it possible to get access to the Master ...
0
votes
0answers
34 views

Store Credit Card information in Account Object in Salesforce

I wanted to check if we can store CredtiCard information (Using Encrypted Field) on Account Object in Salesforce and would it still be PCI Compliant? Thanks Ritu
1
vote
1answer
44 views

SMS is not sending

I have ampscript to be used for mobile connect triggered in Journey Builder The SMS does not send but when I replace with just plain text, it does. Is there any errors with my code? Test SMS via ...
2
votes
1answer
24 views

Custom Meta Data - Hacking security

Is it secure to set as custom meta data, for example, Credit card details or any other sensitive data? Is there any existing option to encrypt this data ?
3
votes
2answers
141 views

Passing encrypted email in url string for Commerce Cloud - Key Management

I need to utilize the encryptsymmetric ampscript function to pass an email through to Commerce Cloud that is encrypted. The guys on commerce cloud have generated a private and public key. I cannot ...
-1
votes
2answers
60 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
0answers
31 views

User-proofing ListView StandardSetController getSelected from unsortable first column

(SFDC Classic) Given ListView VF page/controller invoked by a ListView button PAGE <apex:page id="thePage" standardController="Contact" extensions="ContactsCtrl" recordSetVar="...
0
votes
0answers
36 views

Customer Community Self-Registration - encrypted field

I'm getting the error below when creating external users (Site.createExternalUser) only when encryption is on and when adding new contacts after turning on the encryption to default fields. We ...
0
votes
1answer
41 views

Why can I still see encrypted File and Attachment?

I have enabled Salesforce Shield in a developer org of mine, checked File and Attachment to make encrypted. After that, I created another user with a different profile who have not permission to see ...
1
vote
1answer
50 views

SOQL query with IN operator on deterministically encrypted field returns different data

I have a SOQL query that uses the IN operator to find some Contacts by Email: Set<String> emailSet = new Set<String>{.......}; Map<Id, Contact> contactMap = new Map<Id, Contact&...
0
votes
1answer
100 views

pad block corrupted apex Crypto

I am facing an issue while decryption of value which is stored in custom setting. When i encrypt and decrypt value at same time then i that error is not thrown, if i get the value from custom setting, ...
0
votes
0answers
27 views

How to encrypt using ECB Mode in Apex? [duplicate]

My client asks me to use AES ECB PKCS5 128 encrypting method. I found a way to do it via JavaScript but that can presents some security issues. Unfortunately, ECB mode is not supported in Salesforce (...
0
votes
0answers
23 views

Using Crypto.signXml() to assign Digital Signature to Header Block

I have been trying to Cypto.signXml() to sign by XML document. I want to get the Digest and Signature of the Body element but have it inserted into a Security element within the soap Header. The XML ...
0
votes
2answers
45 views

Does SOSL works when probabilistic encryption is enabled

Does Salesforce SOSL works after enabling probabilistic encryption is enabled on the search field ?
0
votes
0answers
27 views

3 States of Data - Encryption

Three part question about encryption in the 3 data states: In-Transit In-Use At-Rest What types of Encryption does Salesforce offer in these 3 states? Feel free to break it up further in to finer ...
3
votes
2answers
70 views

Dash Characters in Case Sensitive Deterministic Encryption Not Returned in SOQL

I am experiencing some unexpected results when querying a on a text field that is using Case Sensitive Deterministic Encryption. The field can contain dashes - in the string, when I use an exact ...
2
votes
1answer
41 views

Encrypted Fields Unable to Update in Apex Class - Able to Update in Apex Execute Anonymous

I am using a custom object to store Oauth credentials. I am able to update this object in Apex Execute Anonymous. I am unable to update this object in an apex class. Salesforce Connect ...
0
votes
1answer
20 views

Prevent Duplicates using unique key

We want to prevent duplicate records of a custom object. The key is built from 20 fields of the record, for example: Let's say a record has Name = "Test", Date="01/01/2018", Number="5" the key would ...
1
vote
1answer
92 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 ...
1
vote
2answers
235 views

Operator like is not supported on an encrypted field

We are querying Salesforce using SOQL, if the encryption is enabled for the field that is used in query, we are getting the following error. Operator like is not supported on an encrypted field Is ...
2
votes
1answer
627 views

Crypto Class Error: “pad block corrupted”

Created a class for encrypting and decrypting values. It's throwing an error about the 'pad block corrupted' being incomplete. This works for me: Blob ckey = EncodingUtil.base64Decode(...
0
votes
1answer
226 views

Marketing cloud Encryption for exported data

Can I Interpret the following statement given in documentation as below ? You import plain text data into your Marketing Cloud account, which encrypts that data as part of the import process. The ...
2
votes
2answers
193 views

How can I test to see if a field is encrypted using Shield Platform Encryption?

If I encrypt fields with the Platform Shield Encryption, but still see the fields when I'm a different user how can I test to see if the encryption is working? I understand it encrypts at rest so I ...
0
votes
2answers
100 views

How to hide encrypted field in Visualforce page

I have vf page with standard controller of custom object and extension. I have created Text(Encryption) field and allow user to enter this field from vf page. I have some validation on submit button ...
2
votes
1answer
865 views

How can I mask sensitive data in sandbox?

I want to mask the account name of the account object, so that the user cannot view the account name. How can I do this? Please provide me some suggestions. I want this type of pattern
0
votes
1answer
149 views

Test Class for Encryption and decryption of a ID(ERROR: System.InvalidParameterValueException: Invalid initialization vector. Must be 16 bytes.)

I am using below util class to encrypt and decrypt the Salesforce Id. Apex Class public class EncryptDecryptUtil { public static string encyptData(String decryptedString) { Blob ...
1
vote
1answer
62 views

Encrypting custom fields and returning unencrypted data on API calls

We have a need to encrypt a set of custom fields (data at rest) and we were thinking about using just the classic encryption. The data is served to mobile apps using API calls. Is it possible with ...
2
votes
0answers
86 views

Crypto encrypt with external IV

how can I achieve the same result from the bellow JS to apex? I already have tried: blob encryptedData = Crypto.encrypt('AES128', AesKey, AesIv, json); //apex but it says 'Invalid initialization ...
1
vote
0answers
138 views

Building a RSA-SHA1 Signature from Apex

I'm trying to sign a request from apex using RSA-SHA1 algorithm. I'm following the Amazon web service requirements to build the signature as i'm actually generating a cloudfront signed url. The ...
1
vote
1answer
306 views

What's the best practice for encryption key storage

I have the following Apex code and I really don't like the first few lines of code for retrieving the encryption key from a Custom Metadata Type. The main reason I don't like it is my Apex assumes ...
2
votes
1answer
61 views

DescribeFieldResult Class doesn't have encryption and masking methods

Unable to find any method for field encryption and field masking in DescribeFieldResult Class. Methods like getMaskType, getMask, isEncrypted are working with DescribeFieldResult. Is there any ...
1
vote
1answer
371 views

encrypt email address in a data extension

I'd like to encrypt email address in a data extension with SHA256 within marketing cloud. This will be used as a unique identifier. When the email goes into a data extension, have the email address ...
1
vote
1answer
108 views

Symmetrically encrypt data off Salesforce and decrypt in Apex?

We want to encrypt data generated in a Ruby on Rails app to be encrypted, passed to Salesforce, and then be decrypted in Apex code. This seems like a clear case for using Crypto.decrypt: decrypt(...
1
vote
1answer
98 views

can we encrypt %%emailaddr%% while passing to a page?

we pass %%emailaddr%% to a webpage as query string value. Can we encrypt the email on email send and webpage can decrypt it so email is never exposed? NOTE: In this case webpage is a 3rd party site ...
1
vote
1answer
116 views

Decrypt EncryptSymmetric in Demandware (Commerce Cloud)

Hey is there a way to decrypt a encrypted message from Marketing Cloud in the Commerce Cloud (formerly Demandware)? The function used in Marketing Cloud in encrypt is this: EncryptSymmetric('...
-2
votes
1answer
130 views

Convert Java encryption code to Apex

I would like to translate this method into java for apex. Tried in different ways and could not :/ public static String encodeString(String stringToEncode, String secret) throws Exception { byte[]...