Permalink
Browse files

Fixed "Decryption failed. Padding is invalid and cannot be removed." …

…notification.
  • Loading branch information...
1 parent adb45ce commit 8cce811ce5d8ea32e807cb3a84c333500432d3f7 @rmcardle rmcardle committed Feb 22, 2013
Showing with 5 additions and 1 deletion.
  1. +1 −0 CHANGELOG.TXT
  2. +4 −1 mRemoteV1/Security/Security.Crypt.vb
View
@@ -4,6 +4,7 @@
Fix issue MR-318 - Wrong tab gets selected when tab names overflow on the tab bar
Fix issue MR-321 - New connection panel doesn't get panel header if its the only one or is moved
Added option to always show panel tabs
+ Fixed "Decryption failed. Padding is invalid and cannot be removed." notification.
1.70 Beta 2 (2013-02-18):
Fix issue MR-47 - Silent Installation Prompts for Language
@@ -74,7 +74,10 @@ Namespace Security
Return System.Text.Encoding.UTF8.GetString(data, 0, i)
Catch ex As Exception
- MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, String.Format(My.Language.strErrorDecryptionFailed, ex.Message))
+ ' Ignore CryptographicException "Padding is invalid and cannot be removed." when password is incorrect.
+ If Not TypeOf ex Is CryptographicException Then
+ MessageCollector.AddMessage(Messages.MessageClass.ErrorMsg, String.Format(My.Language.strErrorDecryptionFailed, ex.Message))
+ End If
End Try
Return StrToDecrypt

0 comments on commit 8cce811

Please sign in to comment.