Browse Source

swap argument order to match v3 spec

Steven Schobert 9 years ago
parent
commit
b344160d52
1 changed files with 1 additions and 1 deletions
  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]