How does Linux Know That a New Password is Similar to the Old One?
If you have ever received a message that your new password is too similar to your old one, then you may be curious as to how your Linux system 'knows' they are too much alike.
How-To Geek