PHC 形式でのパスワードハッシュのエクスポート

@angus さん、こちらで整理を進めています。

元のコードブロックは以下のようになっているべきでしょうか?

SELECT id, username,
  concat(
    '$pbkdf2-sha256$i=64000,l=32$',
    replace(encode(users.salt::bytea, 'base64'), '=', ''),
    '$',
    replace(encode(decode(password_hash, 'hex'), 'base64'), '=', '')
  ) as phc
FROM users

また、以下のような内容を含めるべきでしょうか?

Discourse のパスワードを Auth0 にインポートする方法の詳細については、Bulk User Import Custom Password Hash Issue - Auth0 Community をご覧ください。

Auth0 から Discourse へデータを移行する場合は、こちらが役立つかもしれません:https://meta.discourse.org/t/migrated-password-hashes-support/19512。

「いいね!」 3