mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-05-07 17:27:50 +02:00
Use random UUID as blowfish key
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user