Template:User committed identity/doc: Difference between revisions

Content added Content deleted
No edit summary
m (→‎Getting the hash: hide interwiki codes from the displayed link)
Line 45: Line 45:
Be sure to note the ''exact string'' you enter into the form, in case you need to use it later. It is important that this string be both easily remembered exactly by you and hard to guess or find by any intruder - if an intruder knows the secret string, then this scheme is useless and provides no security. One's username is public and trivially guessable; one's password is not a good choice either, as in the event of a compromised account, the password is likely to have been guessed.
Be sure to note the ''exact string'' you enter into the form, in case you need to use it later. It is important that this string be both easily remembered exactly by you and hard to guess or find by any intruder - if an intruder knows the secret string, then this scheme is useless and provides no security. One's username is public and trivially guessable; one's password is not a good choice either, as in the event of a compromised account, the password is likely to have been guessed.


On [[en:Unix-like]] operating systems the <code>[[en:md5sum]]</code>, <code>[[en:sha1sum]]</code>, <code>sha224sum</code>, <code>sha256sum</code>, <code>sha384sum</code>, and <code>sha512sum</code> programs are provided in the [[en:GNU Core Utilities]]. Windows users may use one of the methods mentioned below; those who have [[en:PowerShell]] installed can generate a hash using the following command. Provide your secret phrase in the location indicated:
On [[en:Unix-like|Unix-like]] operating systems the <code>[[en:md5sum|md5sum]]</code>, <code>[[en:sha1sum|sha1sum]]</code>, <code>sha224sum</code>, <code>sha256sum</code>, <code>sha384sum</code>, and <code>sha512sum</code> programs are provided in the [[en:GNU Core Utilities]]. Windows users may use one of the methods mentioned below; those who have [[en:PowerShell|PowerShell]] installed can generate a hash using the following command. Provide your secret phrase in the location indicated:


<code>[bitconverter]::tostring((new-object security.cryptography.sha512managed).computehash([text.encoding]::utf8.getbytes("Secret phrase here"))).replace("-", "")</code>
<code>[bitconverter]::tostring((new-object security.cryptography.sha512managed).computehash([text.encoding]::utf8.getbytes("Secret phrase here"))).replace("-", "")</code>