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, ZipCan I generate OTP secrets by using a hash?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?
Why didn't Thor use the All powerful spear instead of Stormbreaker?
Number of aircraft to operate in an airline company
Usage of Offrir and Donner
Why are some Mac apps not available on AppStore?
Are there any instances of members of different Hogwarts houses coupling up and marrying each other?
What are the advantages and disadvantages of Preprepints.org compared with arXiv?
Can board a plane to Cameroon without a Cameroonian visa?
How do I politely hint customers to leave my store, without pretending to need leave store myself?
Guitar beginner - What does this card show?
Will replacing a fake visa with a different fake visa cause me problems when applying for a legal study permit?
What is negative current?
Show that there exists an integer that is a power of 5 with the first 4 digits being 2018.
How should we understand "unobscured by flying friends" in this context?
Does the mana ability restriction of Pithing Needle refer to the cost or the effect of an activated ability?
Have there been any countries that voted themselves out of existence?
How can I fix a framing mistake so I can drywall?
How to progress with CPLEX/Gurobi
SQL Server table with 4,000,000 rows is 40GB
Is there a basic list of ways in which a low-level Rogue can get advantage for sneak attack?
Random point on a sphere
Is there a star over my head?
How much power do LED smart bulb wireless control systems consume when the light is turned off?
Is English tonal for some words, like "permit"?
Procedure for traffic not in sight
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, ZipCan I generate OTP secrets by using a hash?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;
$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?
encryption hash terminology
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$
add a comment |
$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?
encryption hash terminology
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$
$begingroup$
There are many useful hash algorithms that are used for non-cryptographic purposes to hash data. Not all hashing is cryptographic hashing. If it's not a cryptographically-secure hash, then it's definitely not encryption.
$endgroup$
– xdhmoore
50 mins ago
$begingroup$
"Is it wrong?" Yes.
$endgroup$
– Jonathon Reinhart
46 mins ago
add a comment |
$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?
encryption hash terminology
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
encryption hash terminology
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.
edited 7 hours ago
yyyyyyy
10.1k3 gold badges35 silver badges54 bronze badges
10.1k3 gold badges35 silver badges54 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 9 hours ago
Johannes RabauerJohannes Rabauer
111 bronze badge
111 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.
$begingroup$
There are many useful hash algorithms that are used for non-cryptographic purposes to hash data. Not all hashing is cryptographic hashing. If it's not a cryptographically-secure hash, then it's definitely not encryption.
$endgroup$
– xdhmoore
50 mins ago
$begingroup$
"Is it wrong?" Yes.
$endgroup$
– Jonathon Reinhart
46 mins ago
add a comment |
$begingroup$
There are many useful hash algorithms that are used for non-cryptographic purposes to hash data. Not all hashing is cryptographic hashing. If it's not a cryptographically-secure hash, then it's definitely not encryption.
$endgroup$
– xdhmoore
50 mins ago
$begingroup$
"Is it wrong?" Yes.
$endgroup$
– Jonathon Reinhart
46 mins ago
$begingroup$
There are many useful hash algorithms that are used for non-cryptographic purposes to hash data. Not all hashing is cryptographic hashing. If it's not a cryptographically-secure hash, then it's definitely not encryption.
$endgroup$
– xdhmoore
50 mins ago
$begingroup$
There are many useful hash algorithms that are used for non-cryptographic purposes to hash data. Not all hashing is cryptographic hashing. If it's not a cryptographically-secure hash, then it's definitely not encryption.
$endgroup$
– xdhmoore
50 mins ago
$begingroup$
"Is it wrong?" Yes.
$endgroup$
– Jonathon Reinhart
46 mins ago
$begingroup$
"Is it wrong?" Yes.
$endgroup$
– Jonathon Reinhart
46 mins ago
add a comment |
4 Answers
4
active
oldest
votes
$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.
$endgroup$
add a comment |
$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.
$endgroup$
add a comment |
$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.
$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♦
11 mins ago
add a comment |
$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
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♦
5 hours ago
$begingroup$
CTR mode doesn't require the decryption.
$endgroup$
– kelalaka
3 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♦
7 mins ago
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
$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.
$endgroup$
add a comment |
$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.
$endgroup$
add a comment |
$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.
$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.
answered 9 hours ago
AleksanderRasAleksanderRas
4,1722 gold badges11 silver badges41 bronze badges
4,1722 gold badges11 silver badges41 bronze badges
add a comment |
add a comment |
$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.
$endgroup$
add a comment |
$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.
$endgroup$
add a comment |
$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.
$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.
edited 6 hours ago
answered 9 hours ago
fgrieufgrieu
85k7 gold badges189 silver badges371 bronze badges
85k7 gold badges189 silver badges371 bronze badges
add a comment |
add a comment |
$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.
$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♦
11 mins ago
add a comment |
$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.
$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♦
11 mins ago
add a comment |
$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.
$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.
edited 43 secs ago
answered 9 hours ago
Paul UszakPaul Uszak
8,6911 gold badge18 silver badges41 bronze badges
8,6911 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♦
11 mins ago
add a comment |
$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♦
11 mins 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♦
11 mins 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♦
11 mins ago
add a comment |
$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
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♦
5 hours ago
$begingroup$
CTR mode doesn't require the decryption.
$endgroup$
– kelalaka
3 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♦
7 mins ago
add a comment |
$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
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♦
5 hours ago
$begingroup$
CTR mode doesn't require the decryption.
$endgroup$
– kelalaka
3 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♦
7 mins ago
add a comment |
$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
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
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.
edited 4 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 6 hours ago
Jeff SuzukiJeff Suzuki
11 bronze badge
11 bronze badge
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♦
5 hours ago
$begingroup$
CTR mode doesn't require the decryption.
$endgroup$
– kelalaka
3 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♦
7 mins ago
add a comment |
$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♦
5 hours ago
$begingroup$
CTR mode doesn't require the decryption.
$endgroup$
– kelalaka
3 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♦
7 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♦
5 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♦
5 hours ago
$begingroup$
CTR mode doesn't require the decryption.
$endgroup$
– kelalaka
3 hours ago
$begingroup$
CTR mode doesn't require the decryption.
$endgroup$
– kelalaka
3 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♦
7 mins 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♦
7 mins ago
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
$begingroup$
There are many useful hash algorithms that are used for non-cryptographic purposes to hash data. Not all hashing is cryptographic hashing. If it's not a cryptographically-secure hash, then it's definitely not encryption.
$endgroup$
– xdhmoore
50 mins ago
$begingroup$
"Is it wrong?" Yes.
$endgroup$
– Jonathon Reinhart
46 mins ago