dpapi

package
v0.0.0-...-f5d2942 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(data string) (string, error)

Decrypt a string to a string

func DecryptBytes

func DecryptBytes(data []byte) ([]byte, error)

DecryptBytes decrypts a byte array returning a byte array

func Encrypt

func Encrypt(secret string) (string, error)

Encrypt a string value to a base64 string

func EncryptBytes

func EncryptBytes(data []byte) ([]byte, error)

EncryptBytes encrypts a byte array and returns a byte array

func EncryptBytesMachineLocal

func EncryptBytesMachineLocal(data []byte) ([]byte, error)

EncryptBytesMachineLocal encrypts a byte array and returns a byte array and associates the data encrypted with the current computer instead of with an individual user.

func EncryptMachineLocal

func EncryptMachineLocal(secret string) (string, error)

EncryptMachineLocal a string value to a base64 string and associates the data encrypted with the current computer instead of with an individual user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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