summaryrefslogtreecommitdiff
path: root/src/scrypt.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/scrypt.go')
-rw-r--r--src/scrypt.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/scrypt.go b/src/scrypt.go
index 70140ab..511546f 100644
--- a/src/scrypt.go
+++ b/src/scrypt.go
@@ -3,11 +3,12 @@ package scrypt
import (
"crypto/rand"
"encoding/hex"
- "errors"
"fmt"
"io"
"os"
"slices"
+
+ gt "gotext"
)
@@ -32,8 +33,8 @@ const (
var (
- ErrSaltTooSmall = errors.New("scrypt: salt is too small")
- ErrInternal = errors.New("scrypt: internal error")
+ ErrSaltTooSmall = gt.Error(gt.Gettext("scrypt: salt is too small"))
+ ErrInternal = gt.Error(gt.Gettext("scrypt: internal error"))
)
@@ -154,7 +155,7 @@ func Check(input CheckInput) (bool, error) {
func Main() {
if len(os.Args) != 3 {
- fmt.Fprintf(os.Stderr, "Usage: scrypt PASSWORD SALT\n")
+ fmt.Fprintf(os.Stderr, gt.Gettext("Usage: scrypt PASSWORD SALT\n"))
os.Exit(2)
}