Skip to content

Commit 0dbbe7e

Browse files
authored
Update decrypt.md
1 parent 9426a93 commit 0dbbe7e

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

decrypt.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The YW2 Demo dosen't save progress. This is a joke, ignore this (I refuse to rem
3737
* This format affects all non-v1 save files.
3838
### Method
3939
* Identical to that of v1 saves *but*:
40-
* The AESkey is no longer fixed, it is instead loaded from the `head.yw`.
40+
* The AESkey is no longer fixed, it is instead loaded from the (encrypted) `head.yw`.
4141

4242
## YWCipher
4343
**Inputs:**
@@ -215,7 +215,8 @@ R.next(10) // always returns a value between 0 and 9
215215
## Examples
216216
### Togenyan (C++)
217217
Note: I am *NOT* togenyan, in the credits page you should find a link to his github and the appropriate license.
218-
* AES-CCM:
218+
* AES-CCM:<br/>
219+
219220
```cpp
220221
static const int TAG_SIZE = 16;
221222
@@ -252,7 +253,8 @@ QByteArray *CCMCipher::decrypt(const QByteArray &in)
252253
}
253254
```
254255
255-
* Version Detection:
256+
* Version Detection:<br/>
257+
256258
```cpp
257259
setAeskey("5+NI8WVq09V7LI5w"); // test with the hardcoded key used in v1.0 saves
258260
if ((status = loadFile(file)) != Error::SUCCESS) { // If that fails, assume Ganso / Honke ver 2.x OR Shin'uchi
@@ -269,7 +271,8 @@ if (status != Error::SUCCESS) { // if it fails
269271
}
270272
```
271273
272-
* General Decryption Process (slightly readjusted from the original):
274+
* General Decryption Process (slightly readjusted from the original):<br/>
275+
273276
```cpp
274277
SaveManager::loadFile(QString path)
275278
{

0 commit comments

Comments
 (0)