datacipher

package
v0.0.0-...-9df599e Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package secretkeycipher реализует шифрование/дешифрование данных

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

Handler реализует шифрование данных

func New

func New(key string) (*Handler, error)

New создает шифратор данных с указанным ключом

func (*Handler) Decrypt

func (h *Handler) Decrypt(data []byte) (encryptedname []byte, err error)

Decrypt дешифрует данные

func (*Handler) Encrypt

func (h *Handler) Encrypt(data []byte) []byte

Encrypt шифрует данные

Jump to

Keyboard shortcuts

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