Skip to content

Commit

Permalink
fix: update hmac key from 1.6.6 to 1.6.9 (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
nutyworks authored Jun 29, 2022
1 parent cfe4249 commit c2e6d6c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import javax.crypto.spec.SecretKeySpec

object PapagoRequester {
private val mDeviceId = UUID.randomUUID()
private const val mKey = "v1.6.6_b84eb7dae4"
private const val mKey = "v1.6.9_0f9c783dcc"

private val retrofit = Retrofit.Builder()
.baseUrl("https://papago.naver.com/apis/")
Expand Down Expand Up @@ -43,8 +43,7 @@ object PapagoRequester {
).execute().body()?.translatedText
?.replace("&lt;", "<")
?.replace("&gt;", ">")
?.replace("&amp;", "&")
?.replace(" - 사설컬럼()", "") ?: ""
?.replace("&amp;", "&") ?: ""
}

private fun generateAuthorizationToken(timestamp: Long): String {
Expand Down

0 comments on commit c2e6d6c

Please sign in to comment.