mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
fix: remove hash extra
This commit is contained in:
parent
381f8369a3
commit
4091ef0496
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ func New(ops Options) (c *Client, err error) {
|
|||
// 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" + time.Now().Format("2006-01-02")
|
||||
hashExtra := "croc"
|
||||
roomNameBytes := sha256.Sum256([]byte(c.Options.SharedSecret[:4] + hashExtra))
|
||||
c.Options.RoomName = hex.EncodeToString(roomNameBytes[:])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue