I am working on an app integration with a website. Basically, I am a PHP developer but the android app is using Java and I am not very professional in it. I need to offer an option to change passwords via the app itself.
When the user enters a new password as a string, I want the app to make sure that no substrings of length 3 from the old password are used in the new password. This check should be case insensitive.
Eg. If a user has the old password "Angel173MN", he/she cannot opt for any new password that contains any of the substrings: nge,l17,73M etc
Can anyone please guide me how to do it?