Project

General

Profile

Development #31171

python3 : gérer les variations d'encodage pour le sous-module authentic2.crypto

Added by Paul Marillonnet about 2 months ago. Updated 6 days ago.

Status:
Solution proposée
Priority:
Normal
Category:
-
Target version:
-
Start date:
06 Mar 2019
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

En python3 la gestion des objets bytes change la donne.

0001-python3-handle-encoding-variations-in-crypto-submodu.patch View (3.47 KB) Paul Marillonnet, 06 Mar 2019 09:02 PM

0001-python3-encode-salt-before-hashing-in-crypto-submodu.patch View (1.2 KB) Paul Marillonnet, 18 Apr 2019 02:19 PM

0002-python3-struct-packed-C-strings-are-Python-bytes-311.patch View (1.28 KB) Paul Marillonnet, 18 Apr 2019 02:19 PM

0003-python3-struct-unpack-C-strings-into-Python-bytes-31.patch View (974 Bytes) Paul Marillonnet, 18 Apr 2019 02:19 PM

0004-python3-handle-AES-padding-variations-31171.patch View (1.11 KB) Paul Marillonnet, 18 Apr 2019 02:19 PM

0005-python3-base64-url-encoding-returns-bytes-31171.patch View (708 Bytes) Paul Marillonnet, 18 Apr 2019 02:20 PM


Related issues

Related to Authentic 2 - Development #28276: Fonctionner avec Python3 pour Django1.11 En cours 23 Nov 2018

History

#1 Updated by Paul Marillonnet about 2 months ago

#2 Updated by Paul Marillonnet about 2 months ago

#3 Updated by Benjamin Dauvergne 30 days ago

  • Assignee set to Paul Marillonnet

#4 Updated by Benjamin Dauvergne 23 days ago

Es-tu sûr que pack/unpack prennent un bytes comme premier argument ? Ça me semblerait étrange, et au vu des exemples1 c'est faux.

Il y a un module tests/test_crypto.py tu peux tenter de le lancer en python3 pour voir si ça passe.

1 https://docs.python.org/3/library/struct.html#examples

#5 Updated by Benjamin Dauvergne 23 days ago

  • Status changed from Solution proposée to En cours

#7 Updated by Paul Marillonnet 6 days ago

Un cinquième, qui a sa place ici.

Also available in: Atom PDF