Skip to content

Commit

Permalink
Code review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
migesok committed Mar 26, 2020
1 parent 52e0847 commit c78f38f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/com/evolutiongaming/crypto/Crypto.scala
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ object Crypto {
if (sepIndex < 0) {
AES_V0.decrypt(value, privateKey)
} else {
val version = value.substring(0, sepIndex)
val data = value.substring(sepIndex + 1, value.length())
val version = value.take(sepIndex)
val data = value.drop(sepIndex + 1)
version match {
case "1" =>
AES_V1.decrypt(data, privateKey)
Expand Down

0 comments on commit c78f38f

Please sign in to comment.