Użytkownik Ed Leafe napisał:
>
> Were you using existing cnxml files? Those are encrypted with the
> original weak SimpleCrypt algorithm, and not the Crypto.Cipher algorithm.
>
> Delete and recreate your old .cnxml files, and this should go away.
>
No I don't.
Parameters are passed in code.
I have connection information defined this way:
ci.Password = ci.encrypt(self.ctlPassword.Value)
conn = dabo.db.dConnection(ci)
This raises an exception:
File "C:\Python25\lib\site-packages\dabo\db\dConnection.py", line 32,
in __init__
self._connection = self._openConnection(**kwargs)
File "C:\Python25\lib\site-packages\dabo\db\dConnection.py", line 79,
in _openConnection
return
self._connectInfo.getConnection(forceCreate=self._forceCreate, **kwargs)
File "C:\Python25\lib\site-packages\dabo\db\dConnectInfo.py", line
105, in getConnection
return self._backendObject.getConnection(self, **kwargs)
File "c:\python25\lib\site-packages\dabo\db\dbPostgreSQL.py", line
71, in getConnection
self.conn_user, connectInfo.revealPW())
File "C:\Python25\lib\site-packages\dabo\db\dConnectInfo.py", line
132, in revealPW
return self.decrypt(self.Password)
File "C:\Python25\lib\site-packages\dabo\db\dConnectInfo.py", line
125, in decrypt
return self.Application.decrypt(val)
File "C:\Python25\lib\site-packages\dabo\dApp.py", line 858, in decrypt
return self.Crypto.decrypt(val)
File "C:\Python25\lib\site-packages\dabo\lib\SimpleCrypt.py", line
77, in decrypt
decString = base64.b64decode(aString)
File "C:\Python25\lib\base64.py", line 76, in b64decode
raise TypeError(msg)
TypeError: Incorrect padding
--
Regards
Jacek Kałucki
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[email protected]