Skip to content

Commit

Permalink
updated to the new Hasher interface
Browse files Browse the repository at this point in the history
  • Loading branch information
johnabass committed Sep 19, 2024
1 parent 429352e commit 315f214
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/hash/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ func (cmd *Bcrypt) Run(kong *kong.Kong) error {
Cost: cmd.Cost,
}

_, err := hasher.Hash(kong.Stdout, []byte(cmd.Plaintext))
digest, err := hasher.Hash([]byte(cmd.Plaintext))
if err == nil {
digest.WriteTo(kong.Stdout)
}

return err
}

Expand Down

0 comments on commit 315f214

Please sign in to comment.