Skip to content

Support peppering hashes #4

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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