faq: Add pattern decryption details
* Add tables to show how pattern is generated.
Change-Id: Idaee0dc54cbe67cc9c305e24a75da128771deb99
diff --git a/_faq/openrecoveryscript.markdown b/_faq/openrecoveryscript.markdown
index ff4526f..f557cc9 100644
--- a/_faq/openrecoveryscript.markdown
+++ b/_faq/openrecoveryscript.markdown
@@ -7,7 +7,31 @@
}
.desc {
font-size: smaller;
+ clear: both;
}
+.inline-table
+{
+ border-collapse: collapse;
+ border-spacing: 0;
+ background-color: transparent;
+ text-align: center;
+ table-layout: fixed;
+ float: left;
+ margin-top: 10px;
+ margin-bottom: 10px;
+ margin-left: 2px;
+ margin-right: 2px;
+}
+.literal {
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+ background-color: #eef;
+ border-radius: 3px;
+ border: 1px solid #e8e8e8;
+ padding: 2px 4px;
+ white-space: nowrap;
+}
+</style>
</style>
<div class="home">
<ul class="page-heading">CLIENT SIDE/SCRIPT</ul>
@@ -68,7 +92,8 @@
<div class="desc"> launch fix permissions script.</div>
<b>decrypt</b> password :
-<div class="desc"> decrypt /data with provided <b>password</b>.</div></pre>
+<div class="desc"> decrypt /data with provided <b>password</b>.
+ Password could be numeric, alphanumeric. For pattern see note bellow.</div></pre>
<ul class="page-heading">HOST SIDE</ul>
<pre class="command"><b>adbbackup</b> :
@@ -78,3 +103,43 @@
<b>adbrestore</b> FILENAME :
<div class="desc"> Use the <i>adb restore</i> command of the host computer to restore <b>FILENAME</b> where <b>FILENAME</b> is a previously backup taken with <i>adbbackup</i>.</div></pre>
+
+
+
+<ul class="page-heading">Specific pattern decrypt note</ul>
+<div class="desc" >Use the table bellow to determine what your password will be: </div>
+<table border="1" class="inline-table">
+ <colgroup>
+ <col width="33%" /><col width="33%" /><col width="33%" />
+ </colgroup>
+ <tbody valign="top">
+ <tr><td>1</td><td>2</td><td>3</td></tr>
+ <tr><td>4</td><td>5</td><td>6</td></tr>
+ <tr><td>7</td><td>8</td><td>9</td></tr>
+ </tbody>
+</table>
+<table border="1" class="inline-table">
+ <colgroup>
+ <col width="25%" /><col width="25%" /><col width="25%" /><col width="25%" />
+ </colgroup>
+ <tbody valign="top">
+ <tr><td>1</td><td>2</td><td>3</td><td>4</td></tr>
+ <tr><td>5</td><td>6</td><td>7</td><td>8</td></tr>
+ <tr><td>9</td><td>:</td><td>;</td><td><</td></tr>
+ <tr><td>=</td><td>></td><td>?</td><td>@</td></tr>
+ </tbody>
+</table>
+<table border="1" class="inline-table">
+ <colgroup>
+ <col width="20%" /><col width="20%" /><col width="20%" /><col width="20%" /><col width="20%" />
+ </colgroup>
+ <tbody valign="top">
+ <tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr>
+ <tr><td>6</td><td>7</td><td>8</td><td>9</td><td>:</td></tr>
+ <tr><td>;</td><td><</td><td>=</td><td>></td><td>?</td></tr>
+ <tr><td>@</td><td>A</td><td>B</td><td>C</td><td>D</td></tr>
+ <tr><td>E</td><td>F</td><td>G</td><td>H</td><td>I</td></tr>
+ </tbody>
+</table>
+<div class="desc" >Example: if your pattern is a "U" shape in the middle of the 5x5, enter <tt class="literal">twrp decrypt '7<ABC>9'</tt> in the terminal or ADB shell. Note that characters <tt class="literal"><span class="pre">;<>?</span></tt> are special to the shell and require backslash escaping or single quotes around the string.
+<a href='https://blog.alxu.ca/unlocking-large-pattern-encryption-in-twrp.html'>Source</a></div>