Skip to content

Commit

Permalink
base64を使う場所にNO_PADDINGを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
tateisu committed Oct 2, 2018
1 parent f101b23 commit 5989df9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/jp/juggler/fadownloader/util/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ fun ByteArray.digestSHA256() : ByteArray {
return digest.digest(this)
}

fun ByteArray.encodeBase64Safe() :String = Base64.encodeToString(this, Base64.URL_SAFE or Base64.NO_WRAP)
fun ByteArray.encodeBase64Safe() :String = Base64.encodeToString(this, Base64.URL_SAFE or Base64.NO_PADDING or Base64.NO_WRAP)

fun ByteArray.digestMD5() : String {
val md = MessageDigest.getInstance("MD5")
Expand Down

0 comments on commit 5989df9

Please sign in to comment.