Is it possible to decrypt some string which was earlier encrypted with the SHA-1 algorithm in Java?
No, this is not possible, because SHA-1 is a hash - it's a one way ticket. If you want to crypt and decrypt a string then you'll need to use some encryption algorithm that uses key to generate encrypted data. Then you can encrypt data and after successfully decrypt it. For example AES. You can read about AES from here