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
21 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
30 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
20 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
59 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
30 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
24 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
37 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
18 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
122 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
50 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 ...
0
votes
0answers
15 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
22 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
34 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
37 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
54 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
21 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
17 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
38 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
25 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
54 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
34 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
17 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
66 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 ...
0
votes
2answers
124 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
445 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
152 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
148 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
79 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
762 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
115 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
44 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
76 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
112 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
237 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
52 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
288 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
84 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
86 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 ...
0
votes
0answers
29 views

Where can I find the feature or setting called Encrypted Fields Available in Full-Copy Sandbox?

I want to make sure that encrypted fields are not available in a full-copy sandbox, and I see that there was a feature introduced in Spring 2012 to address this, but I can't find any details on how to ...
1
vote
1answer
105 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
123 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[]...
1
vote
1answer
77 views

Encrypt text using a key having 48 bytes?

We want to encrypt a text in Apex using provided key having 48 bytes. Text = 'some xml'; Key = 'TEXT_KEY_REMOVED'; How can we encrypt the text using the provided key? Salesforce supports AES128, ...
6
votes
1answer
193 views

Deploy V42 (beta) Deterministic Platform Encryption

Use case Source org: V42, deterministic platform encryption enabled and set for these fields: Contact.MailingAddress Contact.Phone By using Force.com IDE, ant, or other deployment tool (e.g. ...
0
votes
1answer
77 views

encryption and decryption using .net application

Apex Class: public with sharing class Security { /* key length depends of ALGORITHM_NAME! In case, it uses AES256 so we need to use 32 bytes key must. */ public static final String ...
10
votes
1answer
231 views

What is the performance penalty for Deterministic Platform Encryption?

Spring 18 included a beta release of deterministic encryption for the SFDC Shield Platform Encryption product. Deterministic encryption imposes fewer issues with your existing code base / metadata ...
0
votes
0answers
23 views

Encryption/Decryption for Salesforce Integration with Other Systems by WebServices [duplicate]

I have to expose a synchronous ws that allows to acquire the same message sometimes encrypted and sometimes not. How should I do the WS? examples of outbound WS for cryptography? Please Help me ....
0
votes
2answers
305 views

How do I platform encrypt custom field from managed package?

I don't see custom fields in Platform Encryption Encrypt Fields window. I know that I can also encrypt only custom fields of these types Email Phone Text Text Area Text Area (Long) URL Date Date/...
-1
votes
1answer
73 views

Encrypt json file while sending it to External System

i have custom object with the json file attached in it. i need to encrypt it while sending this file to external system. how can i achieve this in sfdc
2
votes
1answer
518 views

Encrypting SFMC email link parameter values

The email address of the subscriber is currently appended as a parameter to our SFMC email links. Rather than have the email as raw text, we would like to encrypt the value. For example, the link url ...
1
vote
0answers
157 views

URL parameter Issue while having '+' sign in the url [duplicate]

Not sure if anyone encountered this issue. Basically, I am doing an encoding of user details and then via email, I am sending the encoded value (which I got form crypto.encryptWithManagedIV) to the ...