From de2c91609c79faf99845755dc57fa4545ae7d75d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 17 Apr 2020 10:01:00 +0200 Subject: [PATCH] doc: fix examples of password hashes in commands handshake and init (relay protocol) --- doc/en/weechat_relay_protocol.en.adoc | 17 +++++++++-------- doc/fr/weechat_relay_protocol.fr.adoc | 17 +++++++++-------- doc/ja/weechat_relay_protocol.ja.adoc | 17 +++++++++-------- 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/doc/en/weechat_relay_protocol.en.adoc b/doc/en/weechat_relay_protocol.en.adoc index fa2305b4d..62faf51cb 100644 --- a/doc/en/weechat_relay_protocol.en.adoc +++ b/doc/en/weechat_relay_protocol.en.adoc @@ -187,10 +187,11 @@ htb: {'auth_password': 'pbkdf2+sha256', 'hash_iterations': '100000', 'totp': 'on ---- The client can authenticate with this command (see <>), -the salt is the _relay_ nonce + "ABCD" ("41424344" in hexadecimal): +the salt is the _relay_ nonce + "ABCD" ("41424344" in hexadecimal), the password +is "test" in this example: ---- -init password_hash=pbkdf2+sha256:85b1ee00695a5b254e14f4885538df0d41424344:100000:01757d53157ca14a1419e3a8cc1563536520a60b76d2d48e7f9ac09afc945a1c +init password_hash=pbkdf2+sha256:85b1ee00695a5b254e14f4885538df0d41424344:100000:1d4ed89e177cc7be5a6daf6915588cd07e645cb43bc74fadb16bed8d09943a36 ---- [TIP] @@ -279,14 +280,14 @@ init password=mypass,totp=123456 # initialize and disable compression init password=mypass,compression=off -# initialize with hashed password (SHA256: salt="nonce:cnonce") (WeeChat ≥ 2.9) -init password_hash=sha256:6e6f6e63653a636e6f6e6365:b9a4c3393dfac4330736684510378851e581c68add8eca84110c31a33e694676 +# initialize with hashed password "test" (SHA256: salt="nonce:cnonce") (WeeChat ≥ 2.9) +init password_hash=sha256:6e6f6e63653a636e6f6e6365:763c9dca0737e1ca57eb9fc2f61f184550d8d5e8e66c0568a202abb23811771d -# initialize with hashed password (SHA512: salt="nonce:cnonce") (WeeChat ≥ 2.9) -init password_hash=sha512:6e6f6e63653a636e6f6e6365:4469190d4e0d1fdc0afb6f408d9873c89b8ce89cc4db79fe058255c55ad6821fa5e9bb068f9e578c8ae7cc825d85ff99c439d59e439bc589d95620a1e6b8ae6e +# initialize with hashed password "test" (SHA512: salt="nonce:cnonce") (WeeChat ≥ 2.9) +init password_hash=sha512:6e6f6e63653a636e6f6e6365:1410396afdf3ec393cb21dc654980cb6d4569a938e0543d840f3fe7dbd1ff59a082fd484e9b1f0682564bc89bca7542c5b71e44e5e70ffaedbac011db5859407 -# initialize with hashed password (PBKDF2: SHA256, salt="nonce:cnonce", 100000 iterations) (WeeChat ≥ 2.9) -init password_hash=pbkdf2+sha256:6e6f6e63653a636e6f6e6365:100000:01757d53157ca14a1419e3a8cc1563536520a60b76d2d48e7f9ac09afc945a1c +# initialize with hashed password "test" (PBKDF2: SHA256, salt="nonce:cnonce", 100000 iterations) (WeeChat ≥ 2.9) +init password_hash=pbkdf2+sha256:6e6f6e63653a636e6f6e6365:100000:a7433d4425acc40b2ed2c431e9ba084a0b651f7d5549a834ac2024ae5e5f367f ---- [[command_hdata]] diff --git a/doc/fr/weechat_relay_protocol.fr.adoc b/doc/fr/weechat_relay_protocol.fr.adoc index e36b3f9f8..d0c9ac23c 100644 --- a/doc/fr/weechat_relay_protocol.fr.adoc +++ b/doc/fr/weechat_relay_protocol.fr.adoc @@ -202,10 +202,11 @@ htb: {'auth_password': 'pbkdf2+sha256', 'hash_iterations': '100000', 'totp': 'on ---- Le client peut s'authentifier avec cette commande (voir la <>), -le sel est le nonce _relay_ + "ABCD" ("41424344" en hexadécimal) : +le sel est le nonce _relay_ + "ABCD" ("41424344" en hexadécimal), le mot de passe +est "test" dans cet exemple : ---- -init password_hash=pbkdf2+sha256:85b1ee00695a5b254e14f4885538df0d41424344:100000:01757d53157ca14a1419e3a8cc1563536520a60b76d2d48e7f9ac09afc945a1c +init password_hash=pbkdf2+sha256:85b1ee00695a5b254e14f4885538df0d41424344:100000:1d4ed89e177cc7be5a6daf6915588cd07e645cb43bc74fadb16bed8d09943a36 ---- [TIP] @@ -295,14 +296,14 @@ init password=mypass,totp=123456 # initialiser et désactiver la compression init password=mypass,compression=off -# initialiser avec un mot de passe haché (SHA256 : sel="nonce:cnonce") (WeeChat ≥ 2.9) -init password_hash=sha256:6e6f6e63653a636e6f6e6365:b9a4c3393dfac4330736684510378851e581c68add8eca84110c31a33e694676 +# initialiser avec le mot de passe haché "test" (SHA256 : sel="nonce:cnonce") (WeeChat ≥ 2.9) +init password_hash=sha256:6e6f6e63653a636e6f6e6365:763c9dca0737e1ca57eb9fc2f61f184550d8d5e8e66c0568a202abb23811771d -# initialiser avec un mot de passe haché (SHA512 : sel="nonce:cnonce") (WeeChat ≥ 2.9) -init password_hash=sha512:6e6f6e63653a636e6f6e6365:4469190d4e0d1fdc0afb6f408d9873c89b8ce89cc4db79fe058255c55ad6821fa5e9bb068f9e578c8ae7cc825d85ff99c439d59e439bc589d95620a1e6b8ae6e +# initialiser avec le mot de passe haché "test" (SHA512 : sel="nonce:cnonce") (WeeChat ≥ 2.9) +init password_hash=sha512:6e6f6e63653a636e6f6e6365:1410396afdf3ec393cb21dc654980cb6d4569a938e0543d840f3fe7dbd1ff59a082fd484e9b1f0682564bc89bca7542c5b71e44e5e70ffaedbac011db5859407 -# initialiser avec un mot de passe haché (PBKDF2 : SHA256, sel="nonce:cnonce", 100000 itérations) (WeeChat ≥ 2.9) -init password_hash=pbkdf2:sha256:6e6f6e63653a636e6f6e6365:100000:01757d53157ca14a1419e3a8cc1563536520a60b76d2d48e7f9ac09afc945a1c +# initialiser avec le mot de passe haché "test" (PBKDF2 : SHA256, sel="nonce:cnonce", 100000 itérations) (WeeChat ≥ 2.9) +init password_hash=pbkdf2+sha256:6e6f6e63653a636e6f6e6365:100000:a7433d4425acc40b2ed2c431e9ba084a0b651f7d5549a834ac2024ae5e5f367f ---- [[command_hdata]] diff --git a/doc/ja/weechat_relay_protocol.ja.adoc b/doc/ja/weechat_relay_protocol.ja.adoc index 673fef144..bfe59a814 100644 --- a/doc/ja/weechat_relay_protocol.ja.adoc +++ b/doc/ja/weechat_relay_protocol.ja.adoc @@ -196,10 +196,11 @@ htb: {'auth_password': 'pbkdf2+sha256', 'hash_iterations': '100000', 'totp': 'on ---- The client can authenticate with this command (see <>), -the salt is the _relay_ nonce + "ABCD" ("41424344" in hexadecimal): +the salt is the _relay_ nonce + "ABCD" ("41424344" in hexadecimal), the password +is "test" in this example: ---- -init password_hash=pbkdf2+sha256:85b1ee00695a5b254e14f4885538df0d41424344:100000:01757d53157ca14a1419e3a8cc1563536520a60b76d2d48e7f9ac09afc945a1c +init password_hash=pbkdf2+sha256:85b1ee00695a5b254e14f4885538df0d41424344:100000:1d4ed89e177cc7be5a6daf6915588cd07e645cb43bc74fadb16bed8d09943a36 ---- [TIP] @@ -294,14 +295,14 @@ init password=mypass,totp=123456 # 圧縮を使わない例 init password=mypass,compression=off -# initialize with hashed password (SHA256: salt="nonce:cnonce") (WeeChat バージョン 2.9 以上の場合) -init password_hash=sha256:6e6f6e63653a636e6f6e6365:b9a4c3393dfac4330736684510378851e581c68add8eca84110c31a33e694676 +# initialize with hashed password "test" (SHA256: salt="nonce:cnonce") (WeeChat バージョン 2.9 以上の場合) +init password_hash=sha256:6e6f6e63653a636e6f6e6365:763c9dca0737e1ca57eb9fc2f61f184550d8d5e8e66c0568a202abb23811771d -# initialize with hashed password (SHA512: salt="nonce:cnonce") (WeeChat バージョン 2.9 以上の場合) -init password_hash=sha512:6e6f6e63653a636e6f6e6365:4469190d4e0d1fdc0afb6f408d9873c89b8ce89cc4db79fe058255c55ad6821fa5e9bb068f9e578c8ae7cc825d85ff99c439d59e439bc589d95620a1e6b8ae6e +# initialize with hashed password "test" (SHA512: salt="nonce:cnonce") (WeeChat バージョン 2.9 以上の場合) +init password_hash=sha512:6e6f6e63653a636e6f6e6365:1410396afdf3ec393cb21dc654980cb6d4569a938e0543d840f3fe7dbd1ff59a082fd484e9b1f0682564bc89bca7542c5b71e44e5e70ffaedbac011db5859407 -# initialize with hashed password (PBKDF2: SHA256, salt="nonce:cnonce", 100000 iterations) (WeeChat バージョン 2.9 以上の場合) -init password_hash=pbkdf2+sha256:6e6f6e63653a636e6f6e6365:100000:01757d53157ca14a1419e3a8cc1563536520a60b76d2d48e7f9ac09afc945a1c +# initialize with hashed password "test" (PBKDF2: SHA256, salt="nonce:cnonce", 100000 iterations) (WeeChat バージョン 2.9 以上の場合) +init password_hash=pbkdf2+sha256:6e6f6e63653a636e6f6e6365:100000:a7433d4425acc40b2ed2c431e9ba084a0b651f7d5549a834ac2024ae5e5f367f ---- [[command_hdata]]