Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai all,

I using a Salesforce.com account in my asp.net project now i use ordinary login credential its working good but i want to encrypt that details in connectionstring how can i do it. Please help me its Urgent..Thank you..
Posted
Updated 29-Jul-13 2:38am
v2
Comments
ZurdoDev 29-Jul-13 8:30am    
You can either write the code yourself or there are lots of articles online about how to encrypt web.config connectionstrings. Where are you stuck?
Sam Path 29-Jul-13 8:33am    
this is not a ordinary database connection..it is an login details for the Salesforce.com that is the problem i searched lot of articles but no one help me..thanks
ZurdoDev 29-Jul-13 8:37am    
Isn't that irrelevant? Aren't you asking how to encrypt something in web.config?
Sam Path 29-Jul-13 8:39am    
k..thank you :-)

1 solution

Hi Sam path,

I would suggest you to write your own encryption/decryption technique and make it as run able application.Which can be used in other project also.
Sure it will help you in project as well as it would help you learn a bit.

Encrypt the connection string using your own method and put it in web.config
Read the encrypted connection string from app.config in application and decrypt it before using it.

This would impress you manager as well Wink ;-)

Thanks,
RK
 
Share this answer
 
Comments
Sam Path 29-Jul-13 8:36am    
actually this is not a database connection..it is an login details for the Salesforce.com so that is the problem. thank you for the reply :)
♥…ЯҠ…♥ 29-Jul-13 8:42am    
Let it be, implement your own encoding technique to convert login details in web.config then while reading or accessing the login details just decode the same with the technique since you only know the decoding method then pass it to access the www.salesforce.com cloud. Cheers!!!!
Sam Path 29-Jul-13 8:47am    
Thank you :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900