Reputation: 64342
Are there any recommendations for the length of the secret key used to cryptographically hash session data in connect/express? I see everything from 60+ character strings to the canonical 'keyboard cat'.
For my immediate use case, I intend to use SSL for the entire site and the payoff for a brute-force attack is medium to low.
Upvotes: 2
Views: 645
Reputation: 56557
Obviously the longer the better, but making it 60+ is a bit overkill. If the key is a random string ( which it should be ), then do you realize how many combinations you can get with 60 characters? A lot. :)
Upvotes: 1