algorithm

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSecretRSA256

func GenerateSecretRSA256() (string, string, error)

RSA256 키 생성

Types

type RSA256

type RSA256 struct {
}

func (*RSA256) Decrypt

func (rsa256 *RSA256) Decrypt(key string, encrypted []byte) ([]byte, error)

Decrypt 메서드: RSA-OAEP를 사용하여 encrypted를 복호화합니다.

func (*RSA256) Encrypt

func (rsa256 *RSA256) Encrypt(key string, payload []byte) ([]byte, error)

Encrypt 메서드: RSA-OAEP를 사용하여 payload를 암호화합니다.

func (*RSA256) GetAlg added in v0.0.3

func (rsa256 *RSA256) GetAlg() string

func (*RSA256) GetAlgIndex added in v0.0.3

func (rsa256 *RSA256) GetAlgIndex() uint32

Jump to

Keyboard shortcuts

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