Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7693 for trunk


Ignore:
Timestamp:
04/02/12 20:36:53 (13 years ago)
Author:
ascheibe
Message:

#1809 don't throw an exception if the user settings contain an unencrypted password

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Common/3.3/CryptoService.cs

    r7691 r7693  
    4848        return System.Text.Encoding.Unicode.GetString(decryptedData);
    4949      }
     50      catch (CryptographicException) {
     51        // we assume here that the password was saved in clear text in a previous HL version
     52        return encryptedData;
     53      }
     54      catch (FormatException) {
     55        return encryptedData;
     56      }
    5057      catch (Exception ex) {
    5158        throw ex;
Note: See TracChangeset for help on using the changeset viewer.