10
yakomakaza
314d

A senior engineer, while talking about adding encryption to the application, mentioned using SHA256 for that purpose.

Comments
  • 4
    If you're hashing comparables, that's probably fine.

    What are you encrypting?
  • 1
    @SortOfTested Our application provides data to some other downstream applications and that needs to be encrypted. It is all file based, really old system.
  • 0
    @yakomakaza
    I'd want to hear the rest of it, but yeah, obv that's not going to accomplish encryption. Might not be a bad lean for checksum, however.
  • 4
    Encryption with hashes?

    Ooooh Kay then.

    I guess.. it'll be encrypted... in a non reversible way for a few years 😅
  • 4
    Sure it's encryption, just where the key is the original file contents... 😂
  • 0
    @SortOfTested I would like to elaborate further but I have a few colleagues here and I don't want them to find out 😅.
  • 1
    I meaaaan...

    You could do a hash of the password to create a 256bit key for encryption I guess?

    Or you could use the hash as a signature or a checksum I guess?

    I'd like to hear more context from the senior himself before I assume he doesn't know what he's talking about :D
  • 3
    So well encrypted it can never be read again.
  • 0
    One can make ciphers out of hash functions (e.g. "Message Digest Cipher" by Peter Gutman, "Karn" by Phil Karn and the improved version of Karn by Michael Luby and Charles Rackoff).
    They are not necessarily good, and most likely not what anyone would think of when using "encryption" and "sha256" in the same sentence.
  • 0
    FINALLY getting rid of plain-text passwords, are we?
  • 0
    Maybe he was confusing SHA with AES. Albeit very different I've heard quite a bunch of people confusing them already.
  • 1
    @michezio A lot of people mess up "encryption" and "hashing"...

    My old senior thought encryption and hashing were the same too.
  • 0
    Well, at least it's encrypted... 😂
Add Comment