+ Start a Discussion

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.

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.
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.

is this is too hard to implement

i'am new to apex coding