passwordcombiner

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package passwordcombiner combines passwords with salt to create encryption keys

Index

Constants

View Source
const CanaryInput = "canary value"

CanaryInput is the value that is encrypted with the key and stored in the database to check that the key has not changed. Because we encrypt with a nonce, it's not possible to create a rainbow table for this.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedPassword

type CombinedPassword struct {
	Label     string
	Secret    string
	Salt      []byte
	Encryptor gcmencryptor.GCMEncryptor
	// contains filtered or unexported fields
}

type CombinedPasswords

type CombinedPasswords []CombinedPassword

func Combine

func Combine(db *gorm.DB, parsed []passwordparser.PasswordEntry, storedPassMetadata []models.PasswordMetadata) (CombinedPasswords, error)

func (CombinedPasswords) ConfiguredPrimary

func (c CombinedPasswords) ConfiguredPrimary() (CombinedPassword, bool)

func (CombinedPasswords) StoredPrimary

func (c CombinedPasswords) StoredPrimary() (CombinedPassword, bool)

Jump to

Keyboard shortcuts

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