Save and load crypto/rsa PrivateKey to and from the disk

前端 未结 4 1122
萌比男神i
萌比男神i 2021-01-30 10:13

I\'m using crypto/rsa, and trying to find a way to properly save and load a key. Is there a correct way to create a []byte from an rsa.P

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-30 11:06

    FYI: I polished up @David W 's answer and put it in a tiny Go Module. https://github.com/rokk4/gorsapemhelpers

提交回复
热议问题