Page 1 of 1

Love Nikki Encrypted PNG and JPG Files

Posted: Wed Jun 19, 2019 5:33 am
by lapistier
Hello! So for the past year and a half I've been trying to rip the assets from Love Nikki, a mobile game. The PNG and JPG files are all sorted into folders, but it seems like they're encrypted or obfuscated in some way (likely to prevent datamining since the game is a gacha that relies on its exclusive artwork).

I do have a workaround by using Nox and NinjaRipper, so it's not a completely lost cause, it's just extremely slow because the game contains tens of hundreds of images and print screen ripping all that is... tedious.

I've attached an example of the files. One is what should be a transparent 128x151 PNG, the other should be a 1625x1788 JPG. The headers are missing (or just, obfuscated), and from what I've compared, they don't seem to follow the structure they should be. Unfortunately, I don't have a background in decryption, so I'm hoping someone here knows more than I do.

Thank you for your time!

Re: Love Nikki Encrypted PNG and JPG Files

Posted: Sun Jun 23, 2019 6:43 pm
by aspadm
It's just Blowfish encrypted files (took about 3 days to find a solution).

Image
Image

Re: Love Nikki Encrypted PNG and JPG Files

Posted: Sun Jun 23, 2019 10:02 pm
by aspadm
OK, there are small tool for resources decryption :]

Can be used for textures and Lua scripts of game "Love Nikki Dress UP Queen" v.5.0.0 (latest on this moment).

For simple usage, just drop encrypted file on LN_decode.exe.

Re: Love Nikki Encrypted PNG and JPG Files

Posted: Thu Jul 30, 2020 7:06 pm
by aspadm
Since there are new version of game with a lot of new keys, I decided to release a new version of decoder.
Version 2.0 of LN_decoder supports a new game version 7.6.1 and all previous.
It can extract .png, .lua and .ktx (new texture format) files. As addition, this version includes conversion .ktx to .png (works automatically, but only for ETC2 compression. In other cases, you can use PVRTexTool for manual conversion of .ktx).

Usage: just drag-n-drop encoded file to LN_decoder.exe. It will create decoded file with _dec postfix in the same directory with encoded file.