Documentation ¶
Overview ¶
http://blog.studygolang.com/2013/01/go%E5%8A%A0%E5%AF%86%E8%A7%A3%E5%AF%86%E4%B9%8Brsa/ 密钥长度,1024觉得不够安全的话可以用2048,但是代价也相应增大 openssl genrsa -out private.pem 1024 用于生成密钥。在Go中,可以查看encoding/pem包和crypto/x509包 openssl rsa -in private.pem -pubout -out public.pem
Click to show internal directories.
Click to hide internal directories.