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)
Click to show internal directories.
Click to hide internal directories.