function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sam123456sam123456 

how to do encryption in salesforce

 
how can i implement a custom encryption blowfish algorithm (apart from inbuilt feature providved by sfdc) on a visualforce page by make the use of apex class and custom controller.

The functionality of this page should be like this:- I enter the object details on visualforce page in plain text and it will store the data in cipher text on object detail page.
sam123456sam123456

i want to apply this algo for encrption through apex on vf page:
Enhanced algorithm is as follows:
For Encryption
1) Initially, generate a random key.
2) Encrypt the data using that random key.
3) Encrypt the random key with the shared key.
4) Forward the data after encryption process from step 2 and step 3 together.
For Decryption
1) Now decrypt the encrypted random key with the shared key.
2) Then, decrypt the encrypted data with the decrypted random key.
sam123456sam123456
is this is possible to do in salesforce
Ashish Dev 3Ashish Dev 3
Not out of the box supported.
You could write your own in apex. But need to consider lots of factors like computation, security of key etc.
sam123456sam123456

is this is too hard to implement

i'am new to apex coding