Template:Committed identity/testcases

Simple example

sha512(abc) – single parameter, linking to SHA-512 by default
{{Committed identity|ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f}}

{{Committed identity}}

Committed identity: ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f is an SHA-512 commitment to this user's real-life identity.

{{Committed identity/sandbox}}

Committed identity: ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f is a SHA-512 commitment to this user's real-life identity.
sha256(abc) – |2=SHA-256
{{Committed identity|ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad|SHA-256}}

{{Committed identity}}

Committed identity: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad is an SHA-256 commitment to this user's real-life identity.

{{Committed identity/sandbox}}

Committed identity: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad is a SHA-256 commitment to this user's real-life identity.

Errors

Empty-string hashes

SHA-256
{{Committed identity|e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855|SHA-256}}

{{Committed identity}}

e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 is hash of an empty string, it isn't a valid committed identity.

{{Committed identity/sandbox}}

e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 is hash of an empty string, it isn't a valid committed identity.
SHA-384
{{Committed identity|38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b|SHA-384}}

{{Committed identity}}

38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b is hash of an empty string, it isn't a valid committed identity.

{{Committed identity/sandbox}}

38b060a751ac96384cd9327eb1b1e36a21fdb71114be07434c0cc7bf63f6e1da274edebfe76f65fbd51ad2f14898b95b is hash of an empty string, it isn't a valid committed identity.
SHA-512
{{Committed identity|cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e|SHA-512}}

{{Committed identity}}

cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e is hash of an empty string, it isn't a valid committed identity.

{{Committed identity/sandbox}}

cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e is hash of an empty string, it isn't a valid committed identity.

Algo mismatch (bad length)

These errors are not handled by the template yet:

Too short for SHA-512
{{Committed identity|ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad}}

{{Committed identity}}

Committed identity: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad is an SHA-512 commitment to this user's real-life identity.

{{Committed identity/sandbox}}

Committed identity: ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad is a SHA-512 commitment to this user's real-life identity.
Too long for SHA-256
{{Committed identity|ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f|SHA-256}}

{{Committed identity}}

Committed identity: ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f is an SHA-256 commitment to this user's real-life identity.

{{Committed identity/sandbox}}

Committed identity: ddaf35a193617abacc417349ae20413112e6fa4e89a97ea20a9eeee64b55d39a2192992a274fc1a836ba3c23a3feebbd454d4423643ce80e2a9ac94fa54ca49f is a SHA-256 commitment to this user's real-life identity.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.