goxmldsig
以纯Go语言实现的XML数字签名。
安装
使用go get安装goxmldsig :
$ go get github.com/russellhaering/goxmldsig
用法
签收
package main
import (
"github.com/beevik/etree"
"github.com/russellhaering/goxmldsig"
)
func main () {
// Generate a key and self-signed certificate for signing
randomKeyStore := dsig . RandomKeyStoreForTest ()
ctx := dsig . NewDefaultSigningContext ( randomKeyStore )
2022-05-13 11:18:34
34KB
Go
1