Documentation
¶
Overview ¶
Package libs is reserved for shared internal helpers used across go-* modules.
Design constraints:
- Pure helpers only: no viper, no log.Fatal, no process lifecycle.
- No global mutable state; callers pass inputs and own side effects.
- Prefer dedicated go-* SDK modules for network clients and IO boundaries.
- ConfigDefault: N/A — pure helper packages with no shared Config struct.
Crypto policy: only authenticated or modern primitives are exposed. AES-GCM (cryptox/aesx, encrypt), SHA-256/HMAC (hash), CSPRNG-backed tokens (random), and signed OpenPGP (cryptox/pgp). ECB, DES, MD5, and math/rand-based token helpers were removed.
This module intentionally stays minimal. Prefer dedicated go-* packages for production-ready clients (redis, mongo, httplib, etc.) rather than growing this umbrella module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cryptox
|
|
|
aesx
Package aesx provides AES helpers: AES-GCM (preferred) and AES-CBC with an explicit IV.
|
Package aesx provides AES helpers: AES-GCM (preferred) and AES-CBC with an explicit IV. |
|
pgp
Package pgp provides signed OpenPGP encryption and verified decryption helpers built on github.com/ProtonMail/go-crypto/openpgp.
|
Package pgp provides signed OpenPGP encryption and verified decryption helpers built on github.com/ProtonMail/go-crypto/openpgp. |
|
Package encrypt provides a DI-friendly AES-256-GCM string encryption service.
|
Package encrypt provides a DI-friendly AES-256-GCM string encryption service. |
|
Package hash provides SHA-256 and HMAC-SHA256 helpers.
|
Package hash provides SHA-256 and HMAC-SHA256 helpers. |
|
Package random provides cryptographically secure random helpers.
|
Package random provides cryptographically secure random helpers. |
|
Package reflectx provides small reflection helpers.
|
Package reflectx provides small reflection helpers. |
Click to show internal directories.
Click to hide internal directories.