mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
fix comment
This commit is contained in:
parent
08103bb7bb
commit
dff34fa7fc
1 changed files with 0 additions and 2 deletions
|
@ -196,8 +196,6 @@ func New(ops Options) (c *Client, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Create a hash of part of the shared secret to use as the room name
|
// Create a hash of part of the shared secret to use as the room name
|
||||||
// add the current day and "croc" to the shared secret to make more resistant
|
|
||||||
// to rainbow tables
|
|
||||||
hashExtra := "croc"
|
hashExtra := "croc"
|
||||||
roomNameBytes := sha256.Sum256([]byte(c.Options.SharedSecret[:4] + hashExtra))
|
roomNameBytes := sha256.Sum256([]byte(c.Options.SharedSecret[:4] + hashExtra))
|
||||||
c.Options.RoomName = hex.EncodeToString(roomNameBytes[:])
|
c.Options.RoomName = hex.EncodeToString(roomNameBytes[:])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue