0

My program includes a feature where users could encrypt certain data using a password. As not all passwords will be a proper length, are there any insecurities in fixing this by hashing the password (with a good algorithm) to generate a fixed-length key which will then be fed into AES?

EDIT: Never mind, see http://en.wikipedia.org/wiki/Key_derivation_function

4

1 に答える 1

2

パスワードが短いために簡単に破れる場合-ブルートフォース攻撃中に同じハッシュ関数を適用するだけでよいため、ハッシュは役に立ちません。また、パスワードをハッシュするためにある時点で公開する必要があるため、ハッシュ関数を完全に秘密にすることはできない場合があります。

于 2012-04-18T00:09:23.583 に答える