The Out of the box implementation uses the MD5 encryption algorithm. Suppose we need to have some other encryption algorithm over MD5. My requirement was to add SHA-256 over the already encrypted value with MD5. The following are the changes I had done to get it done.
The component which does the encryption is DigestPasswordHasher. We need to override the encryptPassword() method.
The attached is the code fragment used . The copy and paste of the code seems weird. So I am attaching the file.