Use 128 bit key rather than 192 bit. Because Chrome says it don't support 192 bit AES key.

This commit is contained in:
NI
2019-08-12 11:05:53 +08:00
parent a6ad921ecd
commit 639af4dba2
3 changed files with 295 additions and 4 deletions

View File

@@ -281,8 +281,8 @@ func (s socket) privateKey() string {
return s.randomKey
}
func (s socket) buildCipherKey() [24]byte {
key := [24]byte{}
func (s socket) buildCipherKey() [16]byte {
key := [16]byte{}
now := strconv.FormatInt(time.Now().Unix()/100, 10)
copy(key[:], getSocketAuthKey(now, s.privateKey()))