encrypt

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const FileName = "pass.yaml"

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(encrypted []byte, ciphBlock cipher.Block) []byte

func Encrypt

func Encrypt(plaintext []byte, ciphBlock cipher.Block) []byte

func KeyGeneration

func KeyGeneration(password string) (cipher.Block, string)

Makes a key, then a cipher block. It returns "" if the password generation was successfull. If the following function is changed, also change it in changeKey.go

Types

This section is empty.

Jump to

Keyboard shortcuts

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