crypto

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DecryptRequest

type DecryptRequest struct {
	Ciphertext string // base64 인코딩
	Key        string // 32바이트 hex
}

type DecryptResponse

type DecryptResponse struct {
	Plaintext string
}

func Decrypt

func Decrypt(req DecryptRequest) (DecryptResponse, error)

type EncryptRequest

type EncryptRequest struct {
	Plaintext string
	Key       string // 32바이트 hex
}

type EncryptResponse

type EncryptResponse struct {
	Ciphertext string // base64 인코딩
}

func Encrypt

func Encrypt(req EncryptRequest) (EncryptResponse, error)

type GenerateOTPRequest

type GenerateOTPRequest struct {
	Issuer      string
	AccountName string
}

type GenerateOTPResponse

type GenerateOTPResponse struct {
	Secret string
	URL    string // otpauth:// URL (QR 코드용)
}

type VerifyOTPRequest

type VerifyOTPRequest struct {
	Code   string
	Secret string
}

type VerifyOTPResponse

type VerifyOTPResponse struct{}

func VerifyOTP

func VerifyOTP(req VerifyOTPRequest) (VerifyOTPResponse, error)

Jump to

Keyboard shortcuts

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