security

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2017 License: Apache-2.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatabasePassword

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

DatabasePassword stores a non retrievable password and includes the encryption methods to store data protected with AES256

func LoadDatabasePasswordFromInput

func LoadDatabasePasswordFromInput(input string) *DatabasePassword

LoadDatabasePasswordFromInput creates a new DatabasePassword store with the given password

func LoadDatabasePasswordFromLockagent

func LoadDatabasePasswordFromLockagent(filename string) (*DatabasePassword, error)

LoadDatabasePasswordFromLockagent calls the lock agent of awsenv to get the password stored in memory for secure retrieval

func (*DatabasePassword) Decrypt

func (p *DatabasePassword) Decrypt(in []byte) ([]byte, error)

Decrypt takes an encrypted message from Encrypt and decrypts it with a corresponding method

func (*DatabasePassword) Encrypt

func (p *DatabasePassword) Encrypt(in []byte) ([]byte, error)

Encrypt uses the password stored in the DatabasePassword storage to encrypt the given message with AES256 and returns the encrypted message for storing

func (*DatabasePassword) KillLockAgent

func (p *DatabasePassword) KillLockAgent(filename string) error

KillLockAgent sends the lockagent a kill command using its HTTP interface

func (*DatabasePassword) SpawnLockAgent

func (p *DatabasePassword) SpawnLockAgent(filename, agentTimeout string) error

SpawnLockAgent spawns and detaches from a new lockagent

Jump to

Keyboard shortcuts

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