crypto

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleCrypto

type SimpleCrypto struct {
	// contains filtered or unexported fields
}

SimpleCrypto provides basic encryption for API keys Note: This is a simple implementation. For production, consider using system keychains or more secure storage.

func NewSimpleCrypto

func NewSimpleCrypto() *SimpleCrypto

NewSimpleCrypto creates a new SimpleCrypto instance

func (*SimpleCrypto) Decrypt

func (s *SimpleCrypto) Decrypt(ciphertext string) (string, error)

Decrypt decrypts a string

func (*SimpleCrypto) Encrypt

func (s *SimpleCrypto) Encrypt(plaintext string) (string, error)

Encrypt encrypts a string

Jump to

Keyboard shortcuts

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