Skip to content

Commit

Permalink
Updated documentation pages about the SHA-512 encryption algorithm us…
Browse files Browse the repository at this point in the history
…age.
  • Loading branch information
nthnn committed Dec 7, 2024
1 parent 12cf94d commit 720adf4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
5 changes: 3 additions & 2 deletions documentations/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 10 additions & 10 deletions documentations/src/views/Authentication.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@
<ul>
<li><i>username</i> &mdash; The desired username for the new account.</li>
<li><i>email</i> &mdash; The email address associated with the new account.</li>
<li><i>password</i> &mdash; The MD5 hashed string of the user's chosen password.</li>
<li><i>password</i> &mdash; The SHA-512 hashed string of the user's chosen password.</li>
<li><i>enabled</i> &mdash; A binary flag (0 or 1) indicating whether the account should be enabled (1) or disabled (0).</li>
</ul>

<pre class="bg-secondary border-gray border rounded p-2"><span class="text-primary">{</span>
<span class="text-warning">"username"</span>: <span class="text-danger">"&lt;username&gt;"</span>,
<span class="text-warning">"email"</span>: <span class="text-danger">"&lt;email&gt;"</span>,
<span class="text-warning">"password"</span>: <span class="text-danger">"&lt;MD5 hashed string&gt;"</span>,
<span class="text-warning">"password"</span>: <span class="text-danger">"&lt;SHA-512 hashed string&gt;"</span>,
<span class="text-warning">"enabled"</span>: <span class="text-danger">"0|1"</span>
<span class="text-primary">}</span></pre>

Expand All @@ -70,14 +70,14 @@
<ul>
<li><i>username</i> &mdash; The username of the account to be updated.</li>
<li><i>email</i> &mdash; The updated/new email address of the user to be updated.</li>
<li><i>password</i> &mdash; The updated/new password hashed in MD5 encryption of the user to be updated.</li>
<li><i>password</i> &mdash; The updated/new password hashed in SHA-512 encryption of the user to be updated.</li>
<li><i>enabled</i> &mdash; A binary flag (0 or 1) indicating whether the account should be enabled (1) or disabled (0).</li>
</ul>

<pre class="bg-secondary border-gray border rounded p-2"><span class="text-primary">{</span>
<span class="text-warning">"username"</span>: <span class="text-danger">"&lt;username&gt;"</span>,
<span class="text-warning">"email"</span>: <span class="text-danger">"&lt;email&gt;"</span>,
<span class="text-warning">"password"</span>: <span class="text-danger">"&lt;MD5 hashed string&gt;"</span>,
<span class="text-warning">"password"</span>: <span class="text-danger">"&lt;SHA-512 hashed string&gt;"</span>,
<span class="text-warning">"enabled"</span>: <span class="text-danger">"0|1"</span>
<span class="text-primary">}</span></pre>

Expand All @@ -89,14 +89,14 @@
<ul>
<li><i>username</i> &mdash; The updated/new username of the account to be updated.</li>
<li><i>email</i> &mdash; The email address of the user to be updated.</li>
<li><i>password</i> &mdash; The updated/new password hashed in MD5 encryption of the user to be updated.</li>
<li><i>password</i> &mdash; The updated/new password hashed in SHA-512 encryption of the user to be updated.</li>
<li><i>enabled</i> &mdash; A binary flag (0 or 1) indicating whether the account should be enabled (1) or disabled (0).</li>
</ul>

<pre class="bg-secondary border-gray border rounded p-2"><span class="text-primary">{</span>
<span class="text-warning">"username"</span>: <span class="text-danger">"&lt;username&gt;"</span>,
<span class="text-warning">"email"</span>: <span class="text-danger">"&lt;email&gt;"</span>,
<span class="text-warning">"password"</span>: <span class="text-danger">"&lt;MD5 hashed string&gt;"</span>,
<span class="text-warning">"password"</span>: <span class="text-danger">"&lt;SHA-512 hashed string&gt;"</span>,
<span class="text-warning">"enabled"</span>: <span class="text-danger">"0|1"</span>
<span class="text-primary">}</span></pre>

Expand Down Expand Up @@ -234,13 +234,13 @@
<span class="text-primary">}</span></pre>

<b class="mt-4 mb-2 d-block border-bottom fw-bold">Auth: Login Username</b>
<p>Log-in a specified QLBase application user account using username and an MD5-hashed password string.</p>
<p>Log-in a specified QLBase application user account using username and an SHA-512-hashed password string.</p>
<pre class="bg-secondary border-gray border rounded p-2">api/index.php?action=auth_login_username</pre>

<b>Payload Structure</b>
<ul>
<li><i>username</i> &mdash; The username of the account to be logged in.</li>
<li><i>password</i> &mdash; The MD5 hashed password string of the account to be logged in.</li>
<li><i>password</i> &mdash; The SHA-512 hashed password string of the account to be logged in.</li>
</ul>

<pre class="bg-secondary border-gray border rounded p-2"><span class="text-primary">{</span>
Expand All @@ -259,13 +259,13 @@
<span class="text-primary">}</span></pre>

<b class="mt-4 mb-2 d-block border-bottom fw-bold">Auth: Login Email</b>
<p>Log-in a specified QLBase application user account using email and an MD5-hashed password string.</p>
<p>Log-in a specified QLBase application user account using email and an SHA-512-hashed password string.</p>
<pre class="bg-secondary border-gray border rounded p-2">api/index.php?action=auth_login_email</pre>

<b>Payload Structure</b>
<ul>
<li><i>email</i> &mdash; The email of the account to be logged in.</li>
<li><i>password</i> &mdash; The MD5 hashed password string of the account to be logged in.</li>
<li><i>password</i> &mdash; The SHA-512 hashed password string of the account to be logged in.</li>
</ul>

<pre class="bg-secondary border-gray border rounded p-2"><span class="text-primary">{</span>
Expand Down
4 changes: 2 additions & 2 deletions documentations/src/views/FileStorage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
</tr>
<tr>
<td>2</td>
<td>Checksum of the fetched file in MD5 hash</td>
<td>Checksum of the fetched file in SHA-512 hash</td>
</tr>
</table>
</li>
Expand Down Expand Up @@ -162,7 +162,7 @@
</tr>
<tr>
<td>3</td>
<td>Checksum of the fetched file in MD5 hash</td>
<td>Checksum of the fetched file in SHA-512 hash</td>
</tr>
</table>
</li>
Expand Down

0 comments on commit 720adf4

Please sign in to comment.