- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3 - APKTool decompilation (Smali bytecode) for modding and rebuilding APK - Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures - Includes full Smali source, resources, and native libraries - Ready to rebuild APK after modifications with apktool b command - Added comprehensive README-apktool.md with modding guide This branch complements the JADX branches: - Use JADX (main/discord-community) to UNDERSTAND code (readable Java) - Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali) Total: 44,417 files, 538.51 MB Smali source code
85 lines
2.1 KiB
Smali
85 lines
2.1 KiB
Smali
.class public final Lcom/digitalturbine/ignite/encryption/d;
|
|
.super Ljava/lang/Object;
|
|
.source "SourceFile"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(Ljavax/crypto/SecretKey;Ljava/lang/String;)Landroid/util/Pair;
|
|
.locals 3
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/security/SecureRandom;
|
|
|
|
invoke-direct {v0}, Ljava/security/SecureRandom;-><init>()V
|
|
|
|
const/16 v1, 0xc
|
|
|
|
.line 2
|
|
invoke-virtual {v0, v1}, Ljava/security/SecureRandom;->generateSeed(I)[B
|
|
|
|
move-result-object v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
.line 3
|
|
invoke-static {v1, v0, p0}, Lcom/digitalturbine/ignite/encryption/a;->a(I[BLjavax/crypto/SecretKey;)Ljavax/crypto/Cipher;
|
|
|
|
move-result-object p0
|
|
|
|
.line 4
|
|
new-instance v1, Ljava/io/ByteArrayOutputStream;
|
|
|
|
invoke-direct {v1}, Ljava/io/ByteArrayOutputStream;-><init>()V
|
|
|
|
.line 5
|
|
new-instance v2, Ljavax/crypto/CipherOutputStream;
|
|
|
|
invoke-direct {v2, v1, p0}, Ljavax/crypto/CipherOutputStream;-><init>(Ljava/io/OutputStream;Ljavax/crypto/Cipher;)V
|
|
|
|
const-string p0, "UTF-8"
|
|
|
|
.line 6
|
|
invoke-virtual {p1, p0}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {v2, p0}, Ljavax/crypto/CipherOutputStream;->write([B)V
|
|
|
|
.line 7
|
|
invoke-virtual {v2}, Ljavax/crypto/CipherOutputStream;->close()V
|
|
|
|
.line 8
|
|
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B
|
|
|
|
move-result-object p0
|
|
|
|
.line 9
|
|
invoke-virtual {v1}, Ljava/io/ByteArrayOutputStream;->close()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
.line 11
|
|
invoke-static {p0, p1}, Landroid/util/Base64;->encodeToString([BI)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
.line 12
|
|
new-instance v1, Landroid/util/Pair;
|
|
|
|
invoke-static {v0, p1}, Landroid/util/Base64;->encodeToString([BI)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {v1, p1, p0}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
return-object v1
|
|
.end method
|