I’ve just been logged out, and had to re log in, and then asked to change my password.

How exactly does it know that my password is weak? Is this based on time since it was last updated, or by actual strength of the password. If it’s by the strength of the password, how can it know it’s weak without 2 way encryption or storing of plain text passwords?