3 ms·
> One way encryption is a mathematical function that takes a variable-length input string and converts it into a fixed-length binary sequence. So, a hash funct
by CiPHPerCoder 11y ago
> One way encryption is a mathematical function that takes a variable-length input string and converts it into a fixed-length binary sequence.
So, a hash function and not encryption? Got it.
Sarcasm aside, we really need to start using the correct terms.
https://paragonie.com/blog/2015/08/you-wouldnt-base64-a-password-cryptography-decoded https://paragonie.com/blog/2015/08/you-wouldnt-base64-a-pass...
Cryptography
||\
| \`- Hash Functions
| `- Secret-Key Cryptography
| |\
| \`- Secret-Key Encryption
| `- Secret-Key Authentication
\
\
`- Public-Key Cryptography
|\
\`- Public-Key Encryption
`- Public-Key Authentication
Hashing is NOT encryption.
- 15155 11y ago"One-way encryption" is a terrible term - they mean "encryption that the encryptor cannot decrypt upon demand." So, asymmetric cryptography.
- eru 11y agoIf you have good hashing, you can build encryption, though.
- CiPHPerCoder 11y agoAnd if you have a good block cipher you can build a hash function. Encryption is a reversible, keyed transformation of a message. If you cannot reverse it, it is not encryption. Calling it encryption just introduces confusion.
- eru 11y agoI concur.