Skip to content

Commit 5f82311

Browse files
committed
chore: bump reactor version
1 parent 9d7b4d0 commit 5f82311

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ subprojects {
3939
group 'com.njkimg.reactive-crypto'
4040

4141
ext {
42-
reactorVersion = '3.3.1.RELEASE'
42+
reactorVersion = '3.4.5'
4343
kotlinJvmVersion = '1.3.21'
4444
log4j2Version = '2.12.0'
4545
slf4jVersion = '1.7.26'

reactive-crypto-core/build.gradle

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ apply plugin: 'org.jetbrains.kotlin.jvm'
44
dependencies {
55
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
66
// netty
7-
compile group: 'io.projectreactor.netty', name: 'reactor-netty', version: '1.0.3'
7+
compile group: 'io.projectreactor.netty', name: 'reactor-netty', version: '1.0.6'
8+
compile 'commons-codec:commons-codec:1.15'
89

910
// spring5 WebClient
1011
compile 'org.springframework:spring-webflux:5.3.3'

reactive-crypto-core/src/main/kotlin/com/njkim/reactivecrypto/core/common/util/CryptUtil.kt

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
package com.njkim.reactivecrypto.core.common.util
1818

19+
import org.apache.commons.codec.binary.Hex
1920
import java.security.MessageDigest
2021
import java.util.*
2122
import javax.crypto.Mac
2223
import javax.crypto.spec.SecretKeySpec
23-
import javax.xml.bind.DatatypeConverter
2424

2525
class CryptUtil {
2626
companion object {
@@ -43,6 +43,6 @@ class CryptUtil {
4343

4444
fun ByteArray.toBase64String(): String = Base64.getEncoder().encodeToString(this)
4545

46-
fun String.hexToByteArray(): ByteArray = DatatypeConverter.parseHexBinary(this)
46+
fun String.hexToByteArray(): ByteArray = Hex.decodeHex(this)
4747

48-
fun ByteArray.byteArrayToHex(): String = DatatypeConverter.printHexBinary(this)
48+
fun ByteArray.byteArrayToHex(): String = Hex.encodeHexString(this)

0 commit comments

Comments
 (0)