Can I say “I will encrypt something” if I hash something?Are there hash algorithms with variable length...

Are there any instances of members of different Hogwarts houses coupling up and marrying each other?

Calculate time difference between two dates

Guitar beginner - What does this card show?

Is there a basic list of ways in which a low-level Rogue can get advantage for sneak attack?

Is there a standard terminology for female equivalents of terms such as 'Kingdom' and if so, what are the most common terms?

Character theory and Quantum Chemistry

What is going on: C++ std::move on std::shared_ptr increases use_count?

Why is differential privacy defined over the exponential function?

Seized engine due to being run without oil

What happens when a caster loses concentration on a banished creature?

Do Milankovitch Cycles fully explain climate change?

Procedure for traffic not in sight

How to split a string by the third .(dot) delimiter

Is there any detail about ambulances in Star Wars?

Awesomism and its awesome gods

What is this dollar sign ($) icon in my Menu Bar?

What is negative current?

I see your BIDMAS and raise you a BADMIS

How do I preserve the line ordering for two "equal" strings while sorting and ignoring the case?

How accurate is the new appraisal system?

Number of aircraft to operate in an airline company

Why is the the worst case for this function O(n^2)?

Can board a plane to Cameroon without a Cameroonian visa?

How can I protect myself in case of a human attack like the murders of the hikers Jespersen and Ueland in Morocco?



Can I say “I will encrypt something” if I hash something?


Are there hash algorithms with variable length output?Will hashing over and over eventually give the same hash?Can hashing become encrypting?Self verifying hash algorithmCan an encryption method be used as a hash function?Encryption in popular compression file formats - 7zip, RAR, ZipAn example of an appropriate use case for AES-CBC encryption without authentication?Is it possible to guarantee a SHA-256 hash will begin with a certain 3 bytes?Using Diffie-Hellman secret key to encrypt/decrypt data?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







4












$begingroup$


As I understand it, a hashing algorithm is some kind of encryption, just a specific kind of it. So is it wrong to say "I encrypt this value." if I "only" hash it?



I understand that it gives the wrong impression, but I think it is not absolutely wrong, or is it?










share|improve this question









New contributor



Johannes Rabauer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






$endgroup$





















    4












    $begingroup$


    As I understand it, a hashing algorithm is some kind of encryption, just a specific kind of it. So is it wrong to say "I encrypt this value." if I "only" hash it?



    I understand that it gives the wrong impression, but I think it is not absolutely wrong, or is it?










    share|improve this question









    New contributor



    Johannes Rabauer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






    $endgroup$

















      4












      4








      4


      1



      $begingroup$


      As I understand it, a hashing algorithm is some kind of encryption, just a specific kind of it. So is it wrong to say "I encrypt this value." if I "only" hash it?



      I understand that it gives the wrong impression, but I think it is not absolutely wrong, or is it?










      share|improve this question









      New contributor



      Johannes Rabauer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      $endgroup$




      As I understand it, a hashing algorithm is some kind of encryption, just a specific kind of it. So is it wrong to say "I encrypt this value." if I "only" hash it?



      I understand that it gives the wrong impression, but I think it is not absolutely wrong, or is it?







      encryption hash terminology






      share|improve this question









      New contributor



      Johannes Rabauer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share|improve this question









      New contributor



      Johannes Rabauer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share|improve this question




      share|improve this question








      edited 37 mins ago









      Peter Mortensen

      1252 bronze badges




      1252 bronze badges






      New contributor



      Johannes Rabauer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      asked 12 hours ago









      Johannes RabauerJohannes Rabauer

      211 bronze badge




      211 bronze badge




      New contributor



      Johannes Rabauer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




      New contributor




      Johannes Rabauer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



























          4 Answers
          4






          active

          oldest

          votes


















          14














          $begingroup$

          Encryption algorithms and hash algorithms both belong to the realm of cryptography but are two different things and encryption doesn't contain hash functions.



          As stated on Wikipedia:




          In cryptography, encryption is the process of encoding a message or information in such a way that only authorized parties can access it and those who are not authorized cannot.




          An encryption algorithm turns some data into a ciphertext which can later be decrypted again to it's original content by using the encryption key.



          If you generate a hash of some data it's can't be "reversed" back into it's original content, because a hash function is (theoretically) a one-way function with loss of data.





          share









          $endgroup$























            5














            $begingroup$

            Encryption implies that with the appropriate key, it is possible to decrypt and recover the original message. Which (in general) is not possible from a hash.



            Thus “I will encrypt” is not adequate if one is going to hash.



            Also: a hashing algorithm is some kind of symmetric cryptography, not encryption. While it is possible to construct hashes from encryption primitives (such as block ciphers), and vice versa, they are different beasts.






            share|improve this answer











            $endgroup$























              3














              $begingroup$


              I understand that it gives the wrong impression, but I think it is not absolutely wrong, or is it?




              It is actually. A hash algorithm computes a 'fingerprint' if you will of the input. So just as a fingerprint identifies you, a hash identifies the input document.



              But just as an entire human being cannot be recreated from just a fingerprint, so the original document cannot be (easily) recreated from the hash. This is the fundamental distinction with an encryption. In encryption it's useful to decrypt, using the original encryption key. You can't with a hash, and it has no key.






              share|improve this answer











              $endgroup$















              • $begingroup$
                "It is actually" ... could you make it clear what part of the question is answered by including it in that first sentence or section?
                $endgroup$
                – Maarten Bodewes
                3 hours ago



















              1














              $begingroup$

              Typically we require encryption be reversible, so it can be used as a communication system.



              Mathematically, when we talk about a cryptographic system, we are focusing on invertible functions. This change in viewpoint is important, because it opens up the possibilities for how we can encrypt information.



              For example, we can use a linear function (affine transformation) as an encryption system:



              https://youtu.be/1S92scw5zIg?list=PLKXdxQAT3tCssgaWOy5vKXAR4WTPpRVYK






              share|improve this answer










              New contributor



              Jeff Suzuki is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.





              $endgroup$















              • $begingroup$
                Welcome to crypto.stackexchange - Can you please summarize the content of the link, or mention what the content is/why it's relevant? If the link ever dies or changes, it greatly diminishes the utility of the answer.
                $endgroup$
                – Ella Rose
                8 hours ago










              • $begingroup$
                CTR mode doesn't require the decryption.
                $endgroup$
                – kelalaka
                6 hours ago










              • $begingroup$
                @kelalaka Yes, CTR mode as a cipher (which includes the XOR operation) certainly does require decryption. It's just that the underlying block cipher is only used in one direction (encryption or decryption as they are equivalent operations for block ciphers). You cannot equate block ciphers with a complete IND-CPA secure cipher. Actually, you can combine a hash function or HMAC with CTR mode to create a cipher, but that doesn't make a hash function a cipher.
                $endgroup$
                – Maarten Bodewes
                2 hours ago












              • $begingroup$
                @MaartenBodewes wrong words used, any way you corrected it.
                $endgroup$
                – kelalaka
                2 hours ago










              • $begingroup$
                There's not a single word "hash" in this answer.
                $endgroup$
                – Oleg V. Volkov
                9 mins ago














              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "281"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              noCode: true, onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });







              Johannes Rabauer is a new contributor. Be nice, and check out our Code of Conduct.










              draft saved

              draft discarded
















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcrypto.stackexchange.com%2fquestions%2f73179%2fcan-i-say-i-will-encrypt-something-if-i-hash-something%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              14














              $begingroup$

              Encryption algorithms and hash algorithms both belong to the realm of cryptography but are two different things and encryption doesn't contain hash functions.



              As stated on Wikipedia:




              In cryptography, encryption is the process of encoding a message or information in such a way that only authorized parties can access it and those who are not authorized cannot.




              An encryption algorithm turns some data into a ciphertext which can later be decrypted again to it's original content by using the encryption key.



              If you generate a hash of some data it's can't be "reversed" back into it's original content, because a hash function is (theoretically) a one-way function with loss of data.





              share









              $endgroup$




















                14














                $begingroup$

                Encryption algorithms and hash algorithms both belong to the realm of cryptography but are two different things and encryption doesn't contain hash functions.



                As stated on Wikipedia:




                In cryptography, encryption is the process of encoding a message or information in such a way that only authorized parties can access it and those who are not authorized cannot.




                An encryption algorithm turns some data into a ciphertext which can later be decrypted again to it's original content by using the encryption key.



                If you generate a hash of some data it's can't be "reversed" back into it's original content, because a hash function is (theoretically) a one-way function with loss of data.





                share









                $endgroup$


















                  14














                  14










                  14







                  $begingroup$

                  Encryption algorithms and hash algorithms both belong to the realm of cryptography but are two different things and encryption doesn't contain hash functions.



                  As stated on Wikipedia:




                  In cryptography, encryption is the process of encoding a message or information in such a way that only authorized parties can access it and those who are not authorized cannot.




                  An encryption algorithm turns some data into a ciphertext which can later be decrypted again to it's original content by using the encryption key.



                  If you generate a hash of some data it's can't be "reversed" back into it's original content, because a hash function is (theoretically) a one-way function with loss of data.





                  share









                  $endgroup$



                  Encryption algorithms and hash algorithms both belong to the realm of cryptography but are two different things and encryption doesn't contain hash functions.



                  As stated on Wikipedia:




                  In cryptography, encryption is the process of encoding a message or information in such a way that only authorized parties can access it and those who are not authorized cannot.




                  An encryption algorithm turns some data into a ciphertext which can later be decrypted again to it's original content by using the encryption key.



                  If you generate a hash of some data it's can't be "reversed" back into it's original content, because a hash function is (theoretically) a one-way function with loss of data.






                  share











                  share


                  share










                  answered 12 hours ago









                  AleksanderRasAleksanderRas

                  4,2612 gold badges11 silver badges42 bronze badges




                  4,2612 gold badges11 silver badges42 bronze badges




























                      5














                      $begingroup$

                      Encryption implies that with the appropriate key, it is possible to decrypt and recover the original message. Which (in general) is not possible from a hash.



                      Thus “I will encrypt” is not adequate if one is going to hash.



                      Also: a hashing algorithm is some kind of symmetric cryptography, not encryption. While it is possible to construct hashes from encryption primitives (such as block ciphers), and vice versa, they are different beasts.






                      share|improve this answer











                      $endgroup$




















                        5














                        $begingroup$

                        Encryption implies that with the appropriate key, it is possible to decrypt and recover the original message. Which (in general) is not possible from a hash.



                        Thus “I will encrypt” is not adequate if one is going to hash.



                        Also: a hashing algorithm is some kind of symmetric cryptography, not encryption. While it is possible to construct hashes from encryption primitives (such as block ciphers), and vice versa, they are different beasts.






                        share|improve this answer











                        $endgroup$


















                          5














                          5










                          5







                          $begingroup$

                          Encryption implies that with the appropriate key, it is possible to decrypt and recover the original message. Which (in general) is not possible from a hash.



                          Thus “I will encrypt” is not adequate if one is going to hash.



                          Also: a hashing algorithm is some kind of symmetric cryptography, not encryption. While it is possible to construct hashes from encryption primitives (such as block ciphers), and vice versa, they are different beasts.






                          share|improve this answer











                          $endgroup$



                          Encryption implies that with the appropriate key, it is possible to decrypt and recover the original message. Which (in general) is not possible from a hash.



                          Thus “I will encrypt” is not adequate if one is going to hash.



                          Also: a hashing algorithm is some kind of symmetric cryptography, not encryption. While it is possible to construct hashes from encryption primitives (such as block ciphers), and vice versa, they are different beasts.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited 9 hours ago

























                          answered 12 hours ago









                          fgrieufgrieu

                          85k7 gold badges189 silver badges371 bronze badges




                          85k7 gold badges189 silver badges371 bronze badges


























                              3














                              $begingroup$


                              I understand that it gives the wrong impression, but I think it is not absolutely wrong, or is it?




                              It is actually. A hash algorithm computes a 'fingerprint' if you will of the input. So just as a fingerprint identifies you, a hash identifies the input document.



                              But just as an entire human being cannot be recreated from just a fingerprint, so the original document cannot be (easily) recreated from the hash. This is the fundamental distinction with an encryption. In encryption it's useful to decrypt, using the original encryption key. You can't with a hash, and it has no key.






                              share|improve this answer











                              $endgroup$















                              • $begingroup$
                                "It is actually" ... could you make it clear what part of the question is answered by including it in that first sentence or section?
                                $endgroup$
                                – Maarten Bodewes
                                3 hours ago
















                              3














                              $begingroup$


                              I understand that it gives the wrong impression, but I think it is not absolutely wrong, or is it?




                              It is actually. A hash algorithm computes a 'fingerprint' if you will of the input. So just as a fingerprint identifies you, a hash identifies the input document.



                              But just as an entire human being cannot be recreated from just a fingerprint, so the original document cannot be (easily) recreated from the hash. This is the fundamental distinction with an encryption. In encryption it's useful to decrypt, using the original encryption key. You can't with a hash, and it has no key.






                              share|improve this answer











                              $endgroup$















                              • $begingroup$
                                "It is actually" ... could you make it clear what part of the question is answered by including it in that first sentence or section?
                                $endgroup$
                                – Maarten Bodewes
                                3 hours ago














                              3














                              3










                              3







                              $begingroup$


                              I understand that it gives the wrong impression, but I think it is not absolutely wrong, or is it?




                              It is actually. A hash algorithm computes a 'fingerprint' if you will of the input. So just as a fingerprint identifies you, a hash identifies the input document.



                              But just as an entire human being cannot be recreated from just a fingerprint, so the original document cannot be (easily) recreated from the hash. This is the fundamental distinction with an encryption. In encryption it's useful to decrypt, using the original encryption key. You can't with a hash, and it has no key.






                              share|improve this answer











                              $endgroup$




                              I understand that it gives the wrong impression, but I think it is not absolutely wrong, or is it?




                              It is actually. A hash algorithm computes a 'fingerprint' if you will of the input. So just as a fingerprint identifies you, a hash identifies the input document.



                              But just as an entire human being cannot be recreated from just a fingerprint, so the original document cannot be (easily) recreated from the hash. This is the fundamental distinction with an encryption. In encryption it's useful to decrypt, using the original encryption key. You can't with a hash, and it has no key.







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited 2 hours ago

























                              answered 12 hours ago









                              Paul UszakPaul Uszak

                              8,7011 gold badge18 silver badges41 bronze badges




                              8,7011 gold badge18 silver badges41 bronze badges















                              • $begingroup$
                                "It is actually" ... could you make it clear what part of the question is answered by including it in that first sentence or section?
                                $endgroup$
                                – Maarten Bodewes
                                3 hours ago


















                              • $begingroup$
                                "It is actually" ... could you make it clear what part of the question is answered by including it in that first sentence or section?
                                $endgroup$
                                – Maarten Bodewes
                                3 hours ago
















                              $begingroup$
                              "It is actually" ... could you make it clear what part of the question is answered by including it in that first sentence or section?
                              $endgroup$
                              – Maarten Bodewes
                              3 hours ago




                              $begingroup$
                              "It is actually" ... could you make it clear what part of the question is answered by including it in that first sentence or section?
                              $endgroup$
                              – Maarten Bodewes
                              3 hours ago











                              1














                              $begingroup$

                              Typically we require encryption be reversible, so it can be used as a communication system.



                              Mathematically, when we talk about a cryptographic system, we are focusing on invertible functions. This change in viewpoint is important, because it opens up the possibilities for how we can encrypt information.



                              For example, we can use a linear function (affine transformation) as an encryption system:



                              https://youtu.be/1S92scw5zIg?list=PLKXdxQAT3tCssgaWOy5vKXAR4WTPpRVYK






                              share|improve this answer










                              New contributor



                              Jeff Suzuki is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.





                              $endgroup$















                              • $begingroup$
                                Welcome to crypto.stackexchange - Can you please summarize the content of the link, or mention what the content is/why it's relevant? If the link ever dies or changes, it greatly diminishes the utility of the answer.
                                $endgroup$
                                – Ella Rose
                                8 hours ago










                              • $begingroup$
                                CTR mode doesn't require the decryption.
                                $endgroup$
                                – kelalaka
                                6 hours ago










                              • $begingroup$
                                @kelalaka Yes, CTR mode as a cipher (which includes the XOR operation) certainly does require decryption. It's just that the underlying block cipher is only used in one direction (encryption or decryption as they are equivalent operations for block ciphers). You cannot equate block ciphers with a complete IND-CPA secure cipher. Actually, you can combine a hash function or HMAC with CTR mode to create a cipher, but that doesn't make a hash function a cipher.
                                $endgroup$
                                – Maarten Bodewes
                                2 hours ago












                              • $begingroup$
                                @MaartenBodewes wrong words used, any way you corrected it.
                                $endgroup$
                                – kelalaka
                                2 hours ago










                              • $begingroup$
                                There's not a single word "hash" in this answer.
                                $endgroup$
                                – Oleg V. Volkov
                                9 mins ago
















                              1














                              $begingroup$

                              Typically we require encryption be reversible, so it can be used as a communication system.



                              Mathematically, when we talk about a cryptographic system, we are focusing on invertible functions. This change in viewpoint is important, because it opens up the possibilities for how we can encrypt information.



                              For example, we can use a linear function (affine transformation) as an encryption system:



                              https://youtu.be/1S92scw5zIg?list=PLKXdxQAT3tCssgaWOy5vKXAR4WTPpRVYK






                              share|improve this answer










                              New contributor



                              Jeff Suzuki is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.





                              $endgroup$















                              • $begingroup$
                                Welcome to crypto.stackexchange - Can you please summarize the content of the link, or mention what the content is/why it's relevant? If the link ever dies or changes, it greatly diminishes the utility of the answer.
                                $endgroup$
                                – Ella Rose
                                8 hours ago










                              • $begingroup$
                                CTR mode doesn't require the decryption.
                                $endgroup$
                                – kelalaka
                                6 hours ago










                              • $begingroup$
                                @kelalaka Yes, CTR mode as a cipher (which includes the XOR operation) certainly does require decryption. It's just that the underlying block cipher is only used in one direction (encryption or decryption as they are equivalent operations for block ciphers). You cannot equate block ciphers with a complete IND-CPA secure cipher. Actually, you can combine a hash function or HMAC with CTR mode to create a cipher, but that doesn't make a hash function a cipher.
                                $endgroup$
                                – Maarten Bodewes
                                2 hours ago












                              • $begingroup$
                                @MaartenBodewes wrong words used, any way you corrected it.
                                $endgroup$
                                – kelalaka
                                2 hours ago










                              • $begingroup$
                                There's not a single word "hash" in this answer.
                                $endgroup$
                                – Oleg V. Volkov
                                9 mins ago














                              1














                              1










                              1







                              $begingroup$

                              Typically we require encryption be reversible, so it can be used as a communication system.



                              Mathematically, when we talk about a cryptographic system, we are focusing on invertible functions. This change in viewpoint is important, because it opens up the possibilities for how we can encrypt information.



                              For example, we can use a linear function (affine transformation) as an encryption system:



                              https://youtu.be/1S92scw5zIg?list=PLKXdxQAT3tCssgaWOy5vKXAR4WTPpRVYK






                              share|improve this answer










                              New contributor



                              Jeff Suzuki is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.





                              $endgroup$



                              Typically we require encryption be reversible, so it can be used as a communication system.



                              Mathematically, when we talk about a cryptographic system, we are focusing on invertible functions. This change in viewpoint is important, because it opens up the possibilities for how we can encrypt information.



                              For example, we can use a linear function (affine transformation) as an encryption system:



                              https://youtu.be/1S92scw5zIg?list=PLKXdxQAT3tCssgaWOy5vKXAR4WTPpRVYK







                              share|improve this answer










                              New contributor



                              Jeff Suzuki is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.








                              share|improve this answer



                              share|improve this answer








                              edited 7 hours ago





















                              New contributor



                              Jeff Suzuki is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.








                              answered 8 hours ago









                              Jeff SuzukiJeff Suzuki

                              112 bronze badges




                              112 bronze badges




                              New contributor



                              Jeff Suzuki is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.




                              New contributor




                              Jeff Suzuki is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                              Check out our Code of Conduct.

















                              • $begingroup$
                                Welcome to crypto.stackexchange - Can you please summarize the content of the link, or mention what the content is/why it's relevant? If the link ever dies or changes, it greatly diminishes the utility of the answer.
                                $endgroup$
                                – Ella Rose
                                8 hours ago










                              • $begingroup$
                                CTR mode doesn't require the decryption.
                                $endgroup$
                                – kelalaka
                                6 hours ago










                              • $begingroup$
                                @kelalaka Yes, CTR mode as a cipher (which includes the XOR operation) certainly does require decryption. It's just that the underlying block cipher is only used in one direction (encryption or decryption as they are equivalent operations for block ciphers). You cannot equate block ciphers with a complete IND-CPA secure cipher. Actually, you can combine a hash function or HMAC with CTR mode to create a cipher, but that doesn't make a hash function a cipher.
                                $endgroup$
                                – Maarten Bodewes
                                2 hours ago












                              • $begingroup$
                                @MaartenBodewes wrong words used, any way you corrected it.
                                $endgroup$
                                – kelalaka
                                2 hours ago










                              • $begingroup$
                                There's not a single word "hash" in this answer.
                                $endgroup$
                                – Oleg V. Volkov
                                9 mins ago


















                              • $begingroup$
                                Welcome to crypto.stackexchange - Can you please summarize the content of the link, or mention what the content is/why it's relevant? If the link ever dies or changes, it greatly diminishes the utility of the answer.
                                $endgroup$
                                – Ella Rose
                                8 hours ago










                              • $begingroup$
                                CTR mode doesn't require the decryption.
                                $endgroup$
                                – kelalaka
                                6 hours ago










                              • $begingroup$
                                @kelalaka Yes, CTR mode as a cipher (which includes the XOR operation) certainly does require decryption. It's just that the underlying block cipher is only used in one direction (encryption or decryption as they are equivalent operations for block ciphers). You cannot equate block ciphers with a complete IND-CPA secure cipher. Actually, you can combine a hash function or HMAC with CTR mode to create a cipher, but that doesn't make a hash function a cipher.
                                $endgroup$
                                – Maarten Bodewes
                                2 hours ago












                              • $begingroup$
                                @MaartenBodewes wrong words used, any way you corrected it.
                                $endgroup$
                                – kelalaka
                                2 hours ago










                              • $begingroup$
                                There's not a single word "hash" in this answer.
                                $endgroup$
                                – Oleg V. Volkov
                                9 mins ago
















                              $begingroup$
                              Welcome to crypto.stackexchange - Can you please summarize the content of the link, or mention what the content is/why it's relevant? If the link ever dies or changes, it greatly diminishes the utility of the answer.
                              $endgroup$
                              – Ella Rose
                              8 hours ago




                              $begingroup$
                              Welcome to crypto.stackexchange - Can you please summarize the content of the link, or mention what the content is/why it's relevant? If the link ever dies or changes, it greatly diminishes the utility of the answer.
                              $endgroup$
                              – Ella Rose
                              8 hours ago












                              $begingroup$
                              CTR mode doesn't require the decryption.
                              $endgroup$
                              – kelalaka
                              6 hours ago




                              $begingroup$
                              CTR mode doesn't require the decryption.
                              $endgroup$
                              – kelalaka
                              6 hours ago












                              $begingroup$
                              @kelalaka Yes, CTR mode as a cipher (which includes the XOR operation) certainly does require decryption. It's just that the underlying block cipher is only used in one direction (encryption or decryption as they are equivalent operations for block ciphers). You cannot equate block ciphers with a complete IND-CPA secure cipher. Actually, you can combine a hash function or HMAC with CTR mode to create a cipher, but that doesn't make a hash function a cipher.
                              $endgroup$
                              – Maarten Bodewes
                              2 hours ago






                              $begingroup$
                              @kelalaka Yes, CTR mode as a cipher (which includes the XOR operation) certainly does require decryption. It's just that the underlying block cipher is only used in one direction (encryption or decryption as they are equivalent operations for block ciphers). You cannot equate block ciphers with a complete IND-CPA secure cipher. Actually, you can combine a hash function or HMAC with CTR mode to create a cipher, but that doesn't make a hash function a cipher.
                              $endgroup$
                              – Maarten Bodewes
                              2 hours ago














                              $begingroup$
                              @MaartenBodewes wrong words used, any way you corrected it.
                              $endgroup$
                              – kelalaka
                              2 hours ago




                              $begingroup$
                              @MaartenBodewes wrong words used, any way you corrected it.
                              $endgroup$
                              – kelalaka
                              2 hours ago












                              $begingroup$
                              There's not a single word "hash" in this answer.
                              $endgroup$
                              – Oleg V. Volkov
                              9 mins ago




                              $begingroup$
                              There's not a single word "hash" in this answer.
                              $endgroup$
                              – Oleg V. Volkov
                              9 mins ago











                              Johannes Rabauer is a new contributor. Be nice, and check out our Code of Conduct.










                              draft saved

                              draft discarded

















                              Johannes Rabauer is a new contributor. Be nice, and check out our Code of Conduct.













                              Johannes Rabauer is a new contributor. Be nice, and check out our Code of Conduct.












                              Johannes Rabauer is a new contributor. Be nice, and check out our Code of Conduct.
















                              Thanks for contributing an answer to Cryptography Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              Use MathJax to format equations. MathJax reference.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcrypto.stackexchange.com%2fquestions%2f73179%2fcan-i-say-i-will-encrypt-something-if-i-hash-something%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Hudson River Historic District Contents Geography History The district today Aesthetics Cultural...

                              The number designs the writing. Feandra Aversely Definition: The act of ingrafting a sprig or shoot of one...

                              Ayherre Geografie Demografie Externe links Navigatiemenu43° 23′ NB, 1° 15′ WL43° 23′ NB, 1°...