瀏覽代碼

swap argument order to match v3 spec

Steven Schobert 9 年之前
父節點
當前提交
b344160d52
共有 1 個文件被更改,包括 1 次插入1 次删除
  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]