udayantha11 (OP)
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 798
Merit: 17
2023 would most likely be as bearish as 2022
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 05, 2022, 09:21:10 AM |
|
Hi All
I have a question that , If Sha256 algo created for hashing. and its one way function. Whoever invented this , he or she can reverse ?
|
we all need universal power and cyclist of Everything -2023 would most likely be as bearish as 2022- =BTC will make it, but might be a long winter=
Stronger the storm, brighter the rainbow
|
|
|
a298b112
Member
![*](https://bitcointalk.org/Themes/custom1/images/star.gif)
Offline
Activity: 143
Merit: 36
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 05, 2022, 09:23:51 AM |
|
Simple answer is no.
|
|
|
|
Pillsike
Newbie
Offline
Activity: 26
Merit: 1
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 05, 2022, 09:28:43 AM |
|
SHA 256 is a hash function and we all know that hash functions can not be reversed it's a one way function. So, no.
|
|
|
|
NeuroticFish
Legendary
Offline
Activity: 3794
Merit: 6487
Looking for campaign manager? Contact icopress!
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 05, 2022, 09:53:20 AM |
|
I have a question that , If Sha256 algo created for hashing. and its one way function. Whoever invented this , he or she can reverse ?
SHA256 is one-way. One way means it cannot really be reversed. Maybe this helps somewhat: https://en.wikipedia.org/wiki/One-way_functionEven more: don't you think that if this could have been reversed, people's money would have been already stolen and bitcoin would be already worthless?
|
|
|
|
pooya87
Legendary
Offline
Activity: 3570
Merit: 10843
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 05, 2022, 01:53:59 PM |
|
All hash algorithms whether they are cryptographic algorithms or non cryptographic algorithms are irreversible. Even in a million years from now they still remain irreversible. In order to understand why they are irreversible I like to use this example: I have two numbers (x and y) and I add them. The result is 10. Can you reverse this simple operation and tell me what x and y were? The answer is no because this very simple algorithm (x+y) is irreversible. Now imagine if there were hundreds of such operations happening in sequence where you add values, have overflow, move bits around, mix bits, etc. and you have what a hash algorithm looks like.
|
|
|
|
BitMaxz
Legendary
Online
Activity: 3374
Merit: 3094
BTC price road to $80k
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 05, 2022, 11:40:13 PM |
|
The question is more likely decrypting the sha256 hash no one has yet been successful to decrypt it.
Or it is more likely you sent BTC and want to reverse the transaction? but you can't able to reverse the transaction however, you can replace it.
This question if you search a little bit through Google there are many explanations about this no one has yet can able to reverse it.
|
|
|
|
nc50lc
Legendary
Offline
Activity: 2534
Merit: 6033
Self-proclaimed Genius
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 06, 2022, 03:37:18 AM |
|
Whoever invented this , he or she can reverse ?
It's not deemed irreversible just because no one knows the algorithm; the algorithm is available to the public. It's irreversible because of the method and the amount of computation required to reverse a SHA256 hash. If you want to literally see how complex it is, try this demo site: https://sha256algorithm.com/You'll see the relation to pooya's example where it's extremely hard to guess those " x+y" in every step to reverse because the values have already altered by the previous steps. The question is more likely decrypting the sha256 hash no one has yet been successful to decrypt it.
SHA256 isn't an encryption algorithm, its hash isn't encrypted.
|
|
|
|
aysg76
Legendary
Offline
Activity: 1960
Merit: 2124
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 06, 2022, 03:47:53 PM |
|
Hi All
I have a question that , If Sha256 algo created for hashing. and its one way function. Whoever invented this , he or she can reverse ?
The National Security Agency or what we commonly call NSA designed the SHA-256 first ever back in 2001 but as you said it can't be reversed even by them also because it's designed as one way hash function which is completely irreversible which is why it's used as hashing function not encryption. If it was possible then we could also get private keys from public keys in bitcoin and many more things that use it but it's not possible and which is why it's safe.As others have already provided you with enough resources and example of how we can't determine the value of inputs from the output we get because there are lot of possibilities.
|
|
|
|
khaled0111
Legendary
Online
Activity: 2646
Merit: 2995
Top Crypto Casino
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 06, 2022, 05:25:10 PM |
|
SHA256 isn't an encryption algorithm, its hash isn't encrypted. I think this is where the confusion comes from. OP is confusing hashing (one way functions) with encryption (two way functions). Hashing functions are irreversible. pooya87 already explained in simple terms how it works and I'll give you a practical example: The output of a hashing function is always a hash with fixed length no matter what the input is. For example, you can take a terabyte file, it's sha256 will be a 256 bits long hash. Do you think it's possible to extract a terabyte data from a 256 bits string!
|
|
|
|
decodx
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 06, 2022, 08:45:21 PM |
|
If Sha256 algo created for hashing. and its one way function. Whoever invented this , he or she can reverse ?
No. The SHA 256 is one of the most common cryptographic hash functions out there, so you'll also see it in lots of applications and other algorithms in cryptography. It's a fast, one-way function, and it can not be reversed. This means that there is no way to recover the original message from its hash value. It's also very hard to modify the content of the message without completely changing its hash value. And, of course, its uniqueness makes it a perfect hashing algorithm for digital signatures.
|
|
|
|
nc50lc
Legendary
Offline
Activity: 2534
Merit: 6033
Self-proclaimed Genius
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 07, 2022, 01:45:49 AM |
|
SHA256 isn't an encryption algorithm, its hash isn't encrypted. I think this is where the confusion comes from. OP is confusing hashing (one way functions) with encryption (two way functions). With the phrase " whoever invented", I think OP is simply thinking that if someone invented something, he must have the knowledge to reverse-engineer it. ...which is not applicable to every invention.
|
|
|
|
aysg76
Legendary
Offline
Activity: 1960
Merit: 2124
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 07, 2022, 04:14:14 PM |
|
With the phrase "whoever invented", I think OP is simply thinking that if someone invented something, he must have the knowledge to reverse-engineer it. ...which is not applicable to every invention.
Yeah that's what he has in mind that there can be loophole which the inventor has intentionally put and can exploit the algorithm for making reversible operation on the hash but that's not possible in this case so his confusion is wrong as we have already stated many times to him.But these are some normal things that come in mind when we learn something new and are curious to explore about them.
|
|
|
|
Saint-loup
Legendary
Offline
Activity: 2730
Merit: 2410
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 09, 2022, 10:44:07 PM |
|
Hi All
I have a question that , If Sha256 algo created for hashing. and its one way function. Whoever invented this , he or she can reverse ?
Not for now, and not even in the coming years fortunately. Even rainbow tables, which were helpful to crack older hash functions like LM hash, MD5, and SHA-1 seem to be useless against it now. As you can see in the link posted by nc50lc and in this one the algorithm is not simple and use several combinations of xor, rotate and shift functions.
|
|
|
|
pooya87
Legendary
Offline
Activity: 3570
Merit: 10843
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 10, 2022, 06:54:09 AM |
|
Even rainbow tables, which were helpful to crack older hash functions like LM hash, MD5, and SHA-1 seem to be useless against it now. Rainbow table is not the same as reversing the hash function and it is not exactly cracking it either. It is more like brute forcing the message where you try many different messages (the input) to find a hash that matches the hash you already have.
|
|
|
|
Saint-loup
Legendary
Offline
Activity: 2730
Merit: 2410
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 10, 2022, 11:13:53 AM |
|
Rainbow table is not the same as reversing the hash function and it is not exactly cracking it either. It is more like brute forcing the message where you try many different messages (the input) to find a hash that matches the hash you already have.
Yes from a mathematical point of view you're right, but the result is the same at the end if you manage to find the initial value from the hashed one. By the way, @udayantha11 if you are looking for a way to "reverse" one sha256 hash, sometimes Google is the most easy and fast way to get that. There are also some databases available online with millions of hash stored : https://md5hashing.nethttps://hashtoolkit.comhttps://md5calc.comhttps://privatekeys.pw
|
|
|
|
khaled0111
Legendary
Online
Activity: 2646
Merit: 2995
Top Crypto Casino
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 10, 2022, 02:17:36 PM |
|
but the result is the same at the end if you manage to find the initial value from the hashed one.
When you perform a rainbow table attack, you simply compare the hash you want to crack with a list of hashes of known values on a database. So, it's not the same thing. Another thing, rainbow tables is used to crack passwords and even if you find a match, there is a slight chance the initial input is something totally different (collision).
|
|
|
|
PrimeNumber7
Copper Member
Legendary
Offline
Activity: 1652
Merit: 1900
Amazon Prime Member #7
|
![](https://bitcointalk.org/Themes/custom1/images/post/xx.gif) |
December 10, 2022, 03:12:47 PM |
|
All hash algorithms whether they are cryptographic algorithms or non cryptographic algorithms are irreversible. Even in a million years from now they still remain irreversible. In order to understand why they are irreversible I like to use this example:
hash algorithms are intended to be one-way functions, but in theory, it is possible to break them. Many hash algorithms are limited as to how much data can be passed through them. The modulo function makes it impossible to know with certainty what the input it, but a hash algorithm could be broken such that it is trivial to calculate a subset of potential inputs.
|
|
|
|
|