{"id":2803,"date":"2024-10-22T10:17:42","date_gmt":"2024-10-22T10:17:42","guid":{"rendered":"https:\/\/apex-aiexperts.com\/?p=2803"},"modified":"2024-10-22T10:17:42","modified_gmt":"2024-10-22T10:17:42","slug":"examples-of-hashing","status":"publish","type":"post","link":"https:\/\/apex-aiexperts.com\/ja\/examples-of-hashing\/","title":{"rendered":"\u30cf\u30c3\u30b7\u30e5\u306e\u4f8b"},"content":{"rendered":"<p class=\"wp-block-paragraph\">So far, in earlier lessons, you\u2019ve learned&nbsp;<a href=\"https:\/\/www.babypips.com\/crypto\/learn\/what-is-hashing\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><em>\u4f55<\/em>&nbsp;hashing is<\/strong><\/a>&nbsp;\u305d\u3057\u3066&nbsp;<a href=\"https:\/\/www.babypips.com\/crypto\/learn\/how-does-hashing-work\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><em>how<\/em>&nbsp;hashing works<\/strong><\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But in order to truly understand just what these specialized programs do, it\u2019s helpful to see actual examples in&nbsp;<strong>action<\/strong>!<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/bpcdn.co\/images\/2022\/04\/05164602\/see-hashing-in-action-360x360.png\" alt=\"See how hashing works!\" class=\"wp-image-221935\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s see how the hashing process works using an actual&nbsp;<strong>\u30cf\u30c3\u30b7\u30e5\u95a2\u6570<\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since&nbsp;<strong>SHA-256<\/strong>&nbsp;is the chosen hash function of Bitcoin, let\u2019s use it for our example.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is our first example input:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">BabyPips.com is cool as ice.<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">When put through the SHA-256 hash function, this sentence creates the following hash value, also known as a \u201c<strong>digest\u201d<\/strong>&nbsp;or simply as a \u201c<strong>hash\u201d<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">A58E12FAC905B8F84EA2F64F888191A4B66A67CC45F8E7B7B0F94C37A134CB57<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You can see that the digest is a combination of letters and numbers. And it is exactly 64 characters in length.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Aside from that, there\u2019s really not much else you can learn from looking at this digest. There are no patterns or clues as to what the input is. It just looks like a bunch of gibberish.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The output may seem random. But there\u2019s no way you could guess the input just by looking at the output.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you run the input through the SHA-256 hash function again, you will get the exact same output (\u201chash\u201d) again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The same input will ALWAYS produce the same output.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, let\u2019s make one subtle change to the first example\u2019s input and see what happens:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">BabyPips.com is cool as lice.<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Notice that the letter \u201cl\u201d has been added to the beginning of the word \u201cice\u201d to spell \u201clice\u201d. have been<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here\u2019s the new digest:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">B8784EAEB1FC50719B2041FB1AEE30FF91516529CCB65B4B446CC4D5F6B4EB95<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now let\u2019s compare the two:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Input<\/th><th>Digest<\/th><\/tr><\/thead><tbody><tr><td>BabyPips.com is cool as ice.<\/td><td>A58E12FAC905B8F84EA2F64F888191A4B66A67CC45F8E7B7B0F94C37A134CB57<\/td><\/tr><tr><td>BabyPips.com is cool as lice.<\/td><td>B8784EAEB1FC50719B2041FB1AEE30FF91516529CCB65B4B446CC4D5F6B4EB95<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You can see that this is a radically different result from the first digest!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Even though the inputs were practically identical, changing a single character generated a completely&nbsp;<strong>different output<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/bpcdn.co\/images\/2022\/03\/24170642\/lice-is-cool-360x360.png\" alt=\"Lice is so cool\" class=\"wp-image-221340\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Lice are pretty disgusting so let\u2019s make one more change to the input:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">BabyPips.com is cool as rice.<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Now let\u2019s see what happens:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">FCA7032BE8CF7F3C0DD75B8DEB77412E452EA5E2275BAA4125123CD639ED2C9A<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">A totally different input once again!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now let\u2019s compare all three:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Input<\/th><th>Digest<\/th><\/tr><\/thead><tbody><tr><td>BabyPips.com is cool as ice.<\/td><td>A58E12FAC905B8F84EA2F64F888191A4B66A67CC45F8E7B7B0F94C37A134CB57<\/td><\/tr><tr><td>BabyPips.com is cool as lice.<\/td><td>B8784EAEB1FC50719B2041FB1AEE30FF91516529CCB65B4B446CC4D5F6B4EB95<\/td><\/tr><tr><td>BabyPips.com is cool as rice.<\/td><td>FCA7032BE8CF7F3C0DD75B8DEB77412E452EA5E2275BAA4125123CD639ED2C9A<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s worth emphasizing that literally any input can be put into a hash function.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Regardless of the length of the input,<strong>&nbsp;the output will always be the same fixed length and it will always appear completely random<\/strong>.<\/p>","protected":false},"excerpt":{"rendered":"<p>So far, in earlier lessons, you\u2019ve learned&nbsp;what&nbsp;hashing is&nbsp;and&nbsp;how&nbsp;hashing works. But in order to truly understand just what these specialized programs do, it\u2019s helpful to see actual examples in&nbsp;action! Let\u2019s see how the hashing process works using an actual&nbsp;hash function. Since&nbsp;SHA-256&nbsp;is the chosen hash function of Bitcoin, let\u2019s use it for our example. This is our first example input: BabyPips.com is cool as ice. When put through the SHA-256 hash function, this sentence creates the following hash value, also known as a \u201cdigest\u201d&nbsp;or simply as a \u201chash\u201d: A58E12FAC905B8F84EA2F64F888191A4B66A67CC45F8E7B7B0F94C37A134CB57 You can see that the digest is a combination of letters and numbers. And it is exactly 64 characters in length. Aside from [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,12],"tags":[],"class_list":["post-2803","post","type-post","status-publish","format-standard","hentry","category-beginners-guide-to-hashing","category-learn-crypto"],"_links":{"self":[{"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/posts\/2803","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/comments?post=2803"}],"version-history":[{"count":1,"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/posts\/2803\/revisions"}],"predecessor-version":[{"id":2804,"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/posts\/2803\/revisions\/2804"}],"wp:attachment":[{"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/media?parent=2803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/categories?post=2803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apex-aiexperts.com\/ja\/wp-json\/wp\/v2\/tags?post=2803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}