What is safer and faster to use for session ID generation in node.js?

后端 未结 0 955
感情败类
感情败类 2021-01-31 00:38

Which is safer and faster? uuid4 or crypto.randomBytes for session id ?

This is how I am generating session id at the moment:

app.use(session({
 secret: \'         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题