aesopenssl

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

Overview

aesopenssl implements AES that is compatible with `aes-256-cbc -salt`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

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

Decrypt decrypts Base58 or Base64 encoded ciphertext

func Encrypt

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

Encrypt encrypts plaintext and returns Base58 or Base64 encoded ciphertext

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
aesopenssl command

Jump to

Keyboard shortcuts

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