songci

package module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

README

宋慈

编译状态 Golang质量 版本 仓库大小 最后提交 授权协议 语言个数 最佳语言 星星个数

一个Golang版本的签名及验证算法库,支持的签名算法有

  • 子南算法,一个类似于腾讯云的签名算法

为什么叫宋慈

没有任何原因,就是为了纪念这位伟大的法医鼻祖而已,刚好又兼具了查验一切不法之徒的含义,和签名验证不谋而合

捐助

支持宝 微信

感谢Jetbrains

本项目通过Jetbrains开源许可IDE编写源代码,特此感谢

Jetbrains图标

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *builder

New 创建新签名器

func NewMapSecret

func NewMapSecret(secrets map[string]string) *mapGetter

NewMapSecret 基于映射的凭据获取

func NewSecret

func NewSecret(secret string) *secretGetter

NewSecret 普通密钥

Types

type Songci

type Songci struct {
	// contains filtered or unexported fields
}

Songci 对外主接口

func (*Songci) Singer

func (s *Songci) Singer(id string, getter getter) (sb *signerBuilder)

func (*Songci) Verifier

func (s *Songci) Verifier(getter getter) *verifierBuilder

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL