How to decrypt sha1-encrypted String in Java

前端 未结 3 743
眼角桃花
眼角桃花 2021-01-05 01:47

Is it possible to decrypt some string which was earlier encrypted with the SHA-1 algorithm in Java?

3条回答
  •  攒了一身酷
    2021-01-05 02:12

    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

提交回复
热议问题