Skip to content

Support peppering hashes #4

@dhui

Description

@dhui
  • Add PepperGrinder interface with methods:
    • Encrypt(dest, plaintext []byte) ([]byte, error)
    • Decrypt(dest, ciphertext []byte) ([]byte, error)
  • Add PepperGrinderAesGcm struct with fields:
    • Key []byte
    • nonce []byte - e.g. IV
  • Add Peppers []PepperGrinder field to Config struct
  • Add PepperVersion int field to Credential struct - index to Config.Peppers
  • Update pepper keys when updating hashes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions