Legacy Knowledge Base
公開されました Jun. 30, 2025

ユーザーパスワードのアルゴリズムと保存されたパスワードの形式は?

Written By

Adrienne Lao

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • Liferayに保存されるパスワードのフォーマットを理解したい。 パスワードの保存にどのようなアルゴリズム、ソルト、ハッシュ形式が使われているか?

環境

  • DXP 7.1

解像度

  • パスワードの例: {PBKDF2WABCDMAEFGH1}ABCDoABC/ABCD644e/XY3ZAbcde8hI0jKLOnBcEE7U7TuuV
  • この例では、8バイトのソルト、4バイトの「ラウンド数」、4バイトの「キーサイズ」で構成されている。 20バイトはパスワードのハッシュである(SHA1を使用し、160ビット=20バイトのダイジェストを生成する)。
  • パスワードの例は48文字で、もともとは36バイトである。 Base64は6ビット単位でエンコードされるため、パスワードの例では48文字が使われている。
  • 塩は9バイト目から始まる
  • ハッシュ化されたフォーマットは17バイト目から始まる。

Did this article resolve your issue ?

Legacy Knowledge Base