crypto

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptSession

func DecryptSession(encrypted []byte, passphrase string) ([]byte, error)

DecryptSession はセッションデータを復号化

func EncryptSession

func EncryptSession(plaintext []byte, passphrase string) ([]byte, error)

EncryptSession はセッションデータを暗号化(AES-256-GCM)

func GetOrCreatePassphrase

func GetOrCreatePassphrase() (string, error)

GetOrCreatePassphrase はパスフレーズをファイルから取得(なければ生成)

Types

This section is empty.

Jump to

Keyboard shortcuts

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