How to decrypt a SHA1 hash value?

195 pts.
Tags:
AS/400
Cryptography
Encryption
RPG
Security
SHA1
SHA= 2fd4e1c6 7a2d28fc ed849ee1 bb76e739 1b93eb12.
How can I decrypt (to ASCII) the string using RPG/400? What is its coding scheme?


Software/Hardware used:
IBM AS400, OS/400
1

Answer Wiki

Thanks. We'll let you know when a new response is added.
It decrypts to
The quick brown fox jumps over the lazy dog

Check out this site of decrypting info DECRYPT

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Subhendu Sen
    You can use DECRYPT_CHAR as SQL function. For more info, you can look here: http://www.mysamplecode.com/2011/05/rpgle-generate-sha-1-hash-use.html.
    140,750 pointsBadges:
    report
  • WoodEngineer
    I will be interested to see if others viewing this know for sure what I state below.
    I think this is a one-way encryption.  By that I mean that a value runs though the SHA1 routine which returns a result.  That result is compared to another value to confirm the keys match.
    I do not think the process can be reversed to reveal the original value.
    Again . . . if this is incorrect, please chime in.
    8,225 pointsBadges:
    report
  • TheRealRaven
    As @WoodEngineer notes, SHA1 is a "hash" function, not an encryption function. As such, it doesn't "decrypt". You can't decrypt something that wasn't encrypted. There is some unknown number of texts all of which would give the same "hash" value. Because there can be multiple input possibilities, there's no way to determine a correct "unhash" value.
    36,035 pointsBadges:
    report
  • TheRealRaven
    BTW, it's long been known that SHA1 was an insecure 'hash'. A couple months ago, it officially became unsecure. A method was demonstrated to alter a document's content while retaining the same hash value, therefore providing proof that decryption doesn't work.
    36,035 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: