core

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//UUIDLength is fixed
	UUIDLength int = 16

	// CompressionNone value
	CompressionNone = uint32(0)
	//CompressionGzip value
	CompressionGzip = uint32(1)

	// CompressionAlgorithmMax algo
	CompressionAlgorithmMax = CompressionGzip
)

Variables

View Source
var (
	// Keepass2CipherAes == 31c1f2e6bf714350be5805216afc5aff
	Keepass2CipherAes = []byte{49, 193, 242, 230, 191, 113, 67, 80, 190, 88, 5, 33, 106, 252, 90, 255}
)

Functions

This section is empty.

Types

type Database

type Database struct {
	Cipher               UUID
	CompressionAlgo      uint32
	TransformSeed        []byte
	TransformRounds      uint64
	TransformedMasterKey []byte
	Key                  *keys.CompositeKey
}

Database represents the database meta info

func NewDatabase

func NewDatabase() *Database

NewDatabase with default values

func (*Database) SetKey

func (d *Database) SetKey(key *keys.CompositeKey, transformSeed []byte) error

SetKey sets up key transformation

type UUID

type UUID struct {
	Data []byte
}

UUID represents the unqiue identifier

Jump to

Keyboard shortcuts

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