The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [encryption]

The tag has no usage guidance.

42 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
88 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/...
3
votes
0answers
321 views

How to convert text field to encrypted when referenced in multiple places? New approach?

We have a text field that is referenced several hundred times in all code, validation rules, WFRs, etc that we'd like to encrypt now. In order to do that, seems like we need to delete it and recreate ...
2
votes
0answers
17 views

How to encrypt certain fields in managed packages

are there alternatives to encrypting personally identifiable data in fields that are not encrypt able through Shield?
2
votes
0answers
110 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 ...
2
votes
1answer
55 views

Streaming API encryption?

Concerning Streaming API in Salesforce : are the messages send, via streaming API , encrypted in any way? On the ComedD website, they mention the measures to take concerning Security : https://docs....
2
votes
0answers
40 views

Enabling Platform Encryption on two packages

We have two managed packages and one is the base package for the other and contains all the fields (no fields on the second package). We want to enable platform encryption on the fields of the base ...
2
votes
1answer
799 views

RSA encryption using public key without source needing to be shorter than modulus

We need to RSA encrypt XML data before sending to a third party web service. The encryption has to happen in Salesforce using public key provided by the service provider. I have looked at code here ...
2
votes
0answers
197 views

generating pbkdf2 keys in apex

Is there an equivalent class/method available? Or are we stick with whatever the crypto class has? Reimplementing the entirw algorithm seems infeasible.
2
votes
0answers
93 views

Key for encryption/decryption works differently when directly used in code vs when stored in custom setting

I am encrypting a message using Crypto class methods. I have created a key as follows: Blob cryptoKeyBlob = Crypto.generateAesKey(128); String cryptoKeyString = EncodingUtil.base64Encode(...
2
votes
0answers
92 views

Dataloader - AES246 encryption during upload - Check java version for AES256 compatibility?

One of the key requirement from the business and as per the policy is to encrypt (using AES256) while the data is pushed from the Data Loader (deployed in the local machine) into SFDC (while in ...
2
votes
0answers
5k views

How Could Error: SSL Connection Request has Failed be generated using TLS?

We are getting an error in the SChannel Event log: “An TLS 1.2 connection request was received from a remote client application, but none of the cipher suites supported by the client application are ...
2
votes
0answers
2k views

Why might a certificate import fail, when uploading a certificate not created from a Salesforce-generated Certificate Signing Request?

I've been given two X509 certificates to upload into an org for use in SSO (one for signing, one for decrypting), but I can't seem to upload either of them successfully. As I've been given the ...
2
votes
0answers
343 views

Decryption of cipher text encrypted using AES(128) encryption with ECB mode

I am aware that SFDC supports decryption using AES(128 bit) using CBC mode. But I have a requirement where I need to decrypt a cipher text encrypted using AES(128 bit) ECB mode. One way of doing ...
1
vote
1answer
38 views

Upsert using encrypted field as external ID

I am looking to use an encrypted field as an external ID for the upsert function. As long as the user running the upsert has read access, the fact that it ID for the upser is encrypted shouldn't ...
1
vote
0answers
61 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="...
1
vote
0answers
185 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
0answers
414 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 ...
1
vote
1answer
169 views

Shield: Encrypted Fields not encrypted

I have enabled platform encryption in a sandbox, and chosen to encrypt a few fields in the Contact object. However, when a user without the "View Encrypted Data" permission views a contact record, ...
1
vote
0answers
63 views

Fields of an Object retrieved using Ant has <encrypted> property

I retrieved an object using ant tool using retrieveUnpackaged command.I retrieved this from a higher environment of my project.. say the SIT environment(Full Sandbox). On looking at the fields( text ...
1
vote
1answer
98 views

Shield Encryption

I have a general doubt on using encryption nature. Suppose I use shield to encrypt data and send some data as merge fields in an email template to other system, how is the encrypted data transferred / ...
1
vote
0answers
41 views

Creating a encrypted field, that cannot be unencrypted

We are trying to creating a text field where we can enter the full credit number, but once the record is saved it only displays the last 4 number. I know salesforce offers encrypted fields, but an ...
1
vote
0answers
78 views

REST (GET) Service fails on certain Encrypted IDs

I have the following REST service that allows you to return data based off an ID. These ID's are encrypted from a external system we control, and when I call it through workbench using 2 different ID'...
1
vote
0answers
807 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 = '...
1
vote
0answers
342 views

Decrypt AES256 data that is encrpted in Java

I have AES256 , base64 encrypted data: C5j45mSEdqfz4f4GnrwR2T25tizY5gb3JoVNtWp8DiYOW5d+qvPx/...
0
votes
0answers
18 views

Encrypting field with deterministic vs enabling Field History

I am seeing some inconsistencies with encryption enablement. For example: Contact.name. When I enable deterministic encryption, I have no issues. However, when I enable Field history tracking, I ...
0
votes
0answers
23 views

Encrypt Decrypt Sync Job question

We performed an action that required turning off encryption for many fields within certain objects, and then turned the encryption back on for the same fields. First, I got am email stating that I ...
0
votes
1answer
13 views

Can we use encryption for journey builder, automation and HTML contents in Marketing cloud

I just want to encrypt my automation and codes in SFMC is this possible and how it cane be done. I know we can encrypt the data but I am looking for encryption of automation, journey and content.
0
votes
1answer
26 views

On encrypting “Account name” standard field will it impact the first name and last name in shield encryption

I Have a requirement where i need to encrypt the "Account name" Standard Field. But my question is will it also encrypt the FirstName & LastName
0
votes
0answers
44 views

Filter Encrypted field in SOQL Query

I have a requirement where i have to filter the SOQL on the basis of encrypted field. Is there any possiblity to achieve this as by default encrypted field 'Account_Number__c' can not be filtered in a ...
0
votes
0answers
334 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 ...
0
votes
0answers
54 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
0
votes
0answers
60 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
0answers
35 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
0answers
30 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 ...
0
votes
2answers
159 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 ...
0
votes
1answer
196 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 ...
0
votes
0answers
236 views

Need Ampscript EncryptSymetric() output to match Coldfusion encrypt()

I am trying to use ampscript in marketing cloud to produce an encrypted string that matches encryption on a coldfusion page. I do not have the ability to change the coldfusion encryption, so the ...
0
votes
1answer
1k views

Generating Symmetric and Assymetric Encryption in key management

I would like to create symmetric encryption to decrypt an encrypted file dropped in the SFTP and Asymmetric encryption for the Data Extension Field level Decryption. Are they any tool to create both ...
0
votes
3answers
235 views

Suppressing a data extension with encrypted email addresses

I'm trying to exclude a data extension where the email addresses are encrypted from a send. Is this possible to do in Salesforce Marketing Cloud?
0
votes
1answer
477 views

Encrypting the JSON request send to external system

Just want to know , if there is way to encrypt the json request that we send to external system. I am integrating with few on-premise external systems and there is ask for encrypted json request from ...
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 ...
-1
votes
1answer
106 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