Use random UUID as blowfish key

This commit is contained in:
Naoki Takezoe
2018-05-01 08:39:30 +09:00
parent 864df6cdac
commit b9acfc62c6

View File

@@ -13,7 +13,7 @@ import scala.util.control.Exception._
object StringUtil {
private lazy val BlowfishKey = {
UUID.randomUUID().toString
UUID.randomUUID().toString.substring(0, 16)
}
def sha1(value: String): String =