Using asymmetric encryption to secure passwords

后端 未结 5 1530
伪装坚强ぢ
伪装坚强ぢ 2021-02-04 22:48

Due to our customer\'s demands, user passwords must be kept in some \"readable\" form in order to allow accounts to be converted at a later date. Unfortunately, just saving hash

5条回答
  •  佛祖请我去吃肉
    2021-02-04 23:20

    In terms of answering your specific question, my main concern would have been management of the private key but given it's well and truly not accessible via any computer system breach, you're pretty well covered on that front.

    I'd still question the logic of not using hashes though - this sounds like a classic YAGNI. A hashing process is deterministic so even if you decided to migrate systems in the future, so long as you can still use the same algorithm, you'll get the same result. Personally, I'd pick a strong hash algorithm, use a cryptographically strong, unique salt on each account and be done with it.

提交回复
热议问题