#1179: SimpleCrypt in 64-bit Python can't decrypt passwords encrypted in 32-bit
python
---------------------------------------------------+------------------------
Reporter: paul | Owner: somebody
Type: defect | Status: new
Priority: major | Milestone: 0.8.3
Component: ui | Version: 0.8.4
Keywords: SimpleCrypt decrypt encrypt pwobscure |
---------------------------------------------------+------------------------
The encrypted values gotten from
dabo.lib.SimpleCrypt.SimpleCrypt().encrypt() aren't portable between
32-bit and 64-bit versions of Python.
First example is run on 64-bit Ubuntu, and shows me successfully
encrypting and decrypting a value. This is followed by me attempting to
decrypt the same value encrypted on 32-bit Windows:
{{{ !python
>>> from dabo.lib.SimpleCrypt import SimpleCrypt
>>> sc = SimpleCrypt()
>>> enc_val = sc.encrypt("paul")
>>> print enc_val
LCCXA3JF6D9D
>>> sc.decrypt(enc_val)
'paul'
>>> from_32 = "P3EW1EXFEB47"
>>> sc.decrypt(from_32)
'\xa4\x98\x02\xa5'
}}}
Second example shows the same problem on 32-bit Windows trying to decrypt
a value from 64-bit Ubuntu:
{{{ !python
>>> from dabo.lib.SimpleCrypt import SimpleCrypt
>>> sc = SimpleCrypt()
>>> enc_val = sc.encrypt("paul")
>>> print enc_val
P3EW1EXFEB47
>>> sc.decrypt(enc_val)
'paul'
>>> from_64 = "LCCXA3JF6D9D"
>>> sc.decrypt(from_64)
'\n\xdd\xaf\xfd'
}}}
--
Ticket URL: <http://trac.dabodev.com/ticket/1179>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo
_______________________________________________
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]