Explorar o código

swap argument order to match v3 spec

Steven Schobert %!s(int64=9) %!d(string=hai) anos
pai
achega
b344160d52
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rncryptor.go

+ 1 - 1
rncryptor.go

@@ -11,7 +11,7 @@ import(
   "golang.org/x/crypto/pbkdf2"
 )
 
-func Decrypt(text, password []byte) ([]byte, error) {
+func Decrypt(password, text []byte) ([]byte, error) {
   version         := text[:1]
   options         := text[1:2]
   encSalt         := text[2:10]