Questions tagged [encryption]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
2k views

EncryptSymmetric AMPScript AES

We want to encrypt / encode URL parameters on our pages. I tried to encrypt a parameter using EncryptSymmetric() with AES algorithm as explained in the documentation %%[SET @encData=EncryptSymmetric("...
12
votes
1answer
374 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 ...
6
votes
2answers
984 views

Integer Array to Base64 String

So I am struggling a bit to convert some code written in java to APEX. The struggle here is that I have an integer array as one of my encryption key, it looks something similar to this below: [242, 2,...
2
votes
1answer
1k 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(...
1
vote
3answers
2k views

Store Encrypted Data in Data Extension

I want to store data in encrypted form in a sendable Data Extension and decrypt it while using. So basically, my DE will contain SubscriberKeys and EmailAddress. Email Address should be encrypted. But ...
1
vote
1answer
361 views

Related to Digital signiature

Something related to Digital signature if we have a doc in sales-force and needs to be digitally signed, which involves digital certificates.. and how we can use crypto class of apex in this. also ...
2
votes
0answers
344 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
0answers
826 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 = '...
6
votes
1answer
959 views

Lightning Components and Encrypted Fields

I have a simple lightning component that tests that encrypted fields are not checked against for security before returning to the UI. This means that users without the View Encrypted Data permission ...
3
votes
2answers
217 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 ...
2
votes
1answer
854 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 ...
2
votes
2answers
264 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) ...
1
vote
1answer
104 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
1answer
85 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 ...
1
vote
1answer
2k views

Why doesn't HMACSHA1 generate the same hash as my c# code?

This is my C# code. private static string CEncrypt() { const string key = "SECRET KEY"; const string message = "SECRET MESSAGE"; var encoding = new UTF8Encoding(); ...
0
votes
1answer
154 views

How to obtain the original text from encrypted text in signWithCertificate() method

I have problem with working with digital signature. In controller encryptWithManagedIV() function is encrypted and decrypted properly. But i don't know how to work with signWithCertificate, how to ...
0
votes
1answer
80 views

Encrypting Contact.Name when using OWASP

We are looking into encrypting a contact.name field in an org that has OWASP installed. When trying to encrypt the field, we get the following error: Apex Class: testAccessController, line 137, ...