我正在使用这个库进行会话.
https://github.com/codegangsta/martini-contrib/tree/master/sessions个
它说:
It is recommended to use an authentication key with 32 or 64 bytes. The encryption key, if set, must be either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256 modes.个
我如何生成一个64字节的密钥,它是不是像[]byte"64characterslongstring"
一样简单,我认为它并不总是那么简单?