-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
39 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
37 changes: 37 additions & 0 deletions
37
from-0-to-crypto-by-projects/episode-2-proof-demonstration/latex.tex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
\documentclass{article} | ||
\usepackage{amsmath} | ||
\usepackage{mathtools, nccmath} | ||
\usepackage{amssymb, amsthm, mathrsfs} | ||
\begin{document} | ||
|
||
|
||
According to the decompilation of the Ciso Vigenere hash algorithm, when the password length is less than 16 the idea behind Ciso Vigenere hash algorithm is: \\ | ||
Let p be the password that the user types. \\ | ||
Let hp be the hardcoded password in the code of Packet Tracer. \\ | ||
Let lp be the length of the user input password. \\ | ||
Let h be the hash value obtained from the custom algorithm. \\ | ||
So that: | ||
$$ | ||
\begin{flushleft} | ||
\begin{multline} | ||
\[ | ||
\forall h \forall lp \forall hp [hp = ((d, s, f, d, ;, k, f, o, A, ,, ., i, y, e, w, r, k, l, d, J, K, D, H, S, U, B, s, g, v, c, a, 6, 9, 8, 3, 4, n, c, x , v), \\ | ||
0 \textless lp \textless 16, \\ | ||
h_{0} = 0, \\ | ||
h_{1} = 8, \\ | ||
h = \Sigma_{i=2}^{lp} | ||
\begin{cases} | ||
((p_i \oplus hp_{8 + i}) \gg 4) + 0x30, & \text{if } (p_{i} \oplus hp_{i+8} \land 0xfffffff0 < 0xa0) \text{ and if } i \equiv 0 \pmod 2 \\ | ||
((p_i \oplus hp_{8 + i}) \gg 4) + 0x37, & \text{if } (p_{i} \oplus hp_{i+8} \land 0xfffffff0 \geq 0xa0) \text{ and if } i \equiv 0 \pmod 2 \\ | ||
((p_i \oplus hp_{8 + i}) \land 0xf) + 0x30, & \text{if } (p_{i} \oplus hp_{i+8} \land 0xf < 0x0a) \text{ and if } i \equiv 1 \pmod 2 \\ | ||
((p_i \oplus hp_{8 + i}) \land 0xf) + 0x37, & \text{if } (p_{i} \oplus hp_{i+8} \land 0xf \geq 0x0a) \text{ and if } i \equiv 1 \pmod 2 | ||
\end{cases} \\ | ||
) \implies \nexists p[p = \mathbf{rev}(h)] \\ | ||
\] | ||
\end{flushleft} | ||
\end{multline} | ||
$$ \\ | ||
|
||
\end{document} |
Binary file added
BIN
+78.1 KB
...o-crypto-by-projects/episode-2-proof-demonstration/theory-behind-type7-hash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.