You need to sign in to do that
Don't have an account?
tulasi ram 1
what is the best practice to store username and password in visualforce login page
Hi,
There is a Login page implemented using visualforce pages. How to save Username and Password when user sets the check box as True. What is the best practice to follow ande where we can save those credentials. Please help me on this.
There is a Login page implemented using visualforce pages. How to save Username and Password when user sets the check box as True. What is the best practice to follow ande where we can save those credentials. Please help me on this.
If you use any other values you could able to see the values ...
For encryption, you can use the following code.
-----------------------
Blob cryptoKey = Crypto.generateAesKey(256);
Blob data = Blob.valueOf('Test data to encrypted');
Blob encryptedData = Crypto.encryptWithManagedIV('AES256', cryptoKey, data);
Blob decryptedData = Crypto.decryptWithManagedIV('AES256', cryptoKey, encryptedData);
// Decode the decrypted data for subsequent use
String decryptedDataString = decryptedData.toString();
System.debug('decryptedDataString:'+decryptedDataString);
-----------------------
Please mark it best if it helps you. Thanks.
Regards,
Pawan Kumar