b.smali
.class public Lcom/alibaba/sdk/android/feedback/xblink/i/b;
.super Ljava/lang/Object;
# direct methods
.method public static a(Ljava/lang/String;)Ljava/lang/String;
.registers 3
const/4 v0, 0x0
if-nez p0, :cond_4
return-object v0
:cond_4
:try_start_4
const-string/jumbo v1, "utf-8"
invoke-virtual {p0, v1}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B
move-result-object p0
const-string v1, "MD5"
invoke-static {p0, v1}, Lcom/alibaba/sdk/android/feedback/xblink/i/b;->b([BLjava/lang/String;)Ljava/lang/String;
move-result-object p0
:try_end_11
.catch Ljava/io/UnsupportedEncodingException; {:try_start_4 .. :try_end_11} :catch_12
return-object p0
:catch_12
move-exception p0
invoke-virtual {p0}, Ljava/io/UnsupportedEncodingException;->printStackTrace()V
return-object v0
.end method
.method private static a([BLjava/lang/String;)[B
.registers 3
:try_start_0
invoke-static {p1}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest;
move-result-object p1
invoke-virtual {p1, p0}, Ljava/security/MessageDigest;->digest([B)[B
move-result-object p0
:try_end_8
.catch Ljava/security/GeneralSecurityException; {:try_start_0 .. :try_end_8} :catch_9
return-object p0
:catch_9
move-exception p0
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "Security exception"
invoke-direct {p1, v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;Ljava/lang/Throwable;)V
throw p1
.end method
.method private static b([BLjava/lang/String;)Ljava/lang/String;
.registers 2
invoke-static {p0, p1}, Lcom/alibaba/sdk/android/feedback/xblink/i/b;->a([BLjava/lang/String;)[B
move-result-object p0
invoke-static {p0}, Lcom/alibaba/sdk/android/feedback/xblink/i/c;->a([B)Ljava/lang/String;
move-result-object p0
return-object p0
.end method