aesargon

package
v0.72.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertextStr, password string, useBase58 bool) (string, error)

Decrypt ciphertext using AES-256-CBC with Argon2id-derived key useBase58: true = decode Base58, false = decode Base64

func Encrypt

func Encrypt(plaintext, password string, useBase58 bool) (string, error)

Encrypt plaintext using AES-256-CBC with Argon2id-derived key useBase58: true = Base58 output, false = Base64 output

Types

type Crypter

type Crypter struct {
	Password  string
	UseBase58 bool
}

func (*Crypter) Decrypt

func (c *Crypter) Decrypt(ciphertext string) (string, error)

func (*Crypter) Encrypt

func (c *Crypter) Encrypt(plaintext string) (string, error)

Directories

Path Synopsis
cmd
aesargon command

Jump to

Keyboard shortcuts

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