Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultKey = "github.com/fsgmhoward/formcrypt.go"
View Source
const DefaultSessionKey = "formcrypt.go/key"
Variables ¶
This section is empty.
Functions ¶
func InitializeEngine ¶
initialize gin engine - adds routes for static assets and adds session middleware
Types ¶
type Key ¶
type Key struct { BitSize int Key rsa.PrivateKey // contains filtered or unexported fields }
func Load ¶
load the key from the session if key cannot be loaded, it should return an empty key with error
func (*Key) GetJavascriptSegment ¶
generate a javascript segment for inserting into HTML
func (*Key) GetPKHexString ¶
generate the base64-encoded public key string in the form of N:E
Click to show internal directories.
Click to hide internal directories.