There is no (practical) way to decrypt/recover a SHA1 hashed password. The whole purpose of SHA1 is to be irreversible.
What you can do is set a new password, and depending on the situation you might copy the encrypted password in encrypted form from the config to another switch.