cryptox

package
v0.0.1-beta.8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: AGPL-3.0 Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGroupKey

func NewGroupKey() string

NewGroupKey 生成分组客户端 key 明文:raw = "ck-" + 32hex(16B 随机,长度 35)。 ck- = client key;历史 gk- 遗留前缀作废(key 已独立于分组)。 明文直接落库(唯一约束 + 鉴权等值查——去 hash 列,见 key_raw 设计)。

func NewManagementKey

func NewManagementKey() string

NewManagementKey 生成管理 API key 明文:raw = "mk-" + 32hex(16B 随机,长度 35)。 mk- = management key;前缀是管理面鉴权的唯一判别符(eyJ=JWT、ck-=客户端 key、 mk-=管理 key,三者不重叠)。明文直接落库(唯一约束 + 鉴权等值查)。

Types

This section is empty.

Jump to

Keyboard shortcuts

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