Steven Schobert 9 лет назад
Родитель
Сommit
e57d7ded38
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      rncryptor.go

+ 1 - 0
rncryptor.go

@@ -51,6 +51,7 @@ func Decrypt(password string, data []byte) ([]byte, error) {
   decrypter := cipher.NewCBCDecrypter(cipherBlock, iv)
   decrypter.CryptBlocks(decrypted, decrypted)
 
+  // un-padd decrypted data
   length := len(decrypted)
   unpadding := int(decrypted[length-1])