BigNerd95 / RouterOS-Backup-Tools

Tools to encrypt/decrypt and pack/unpack RouterOS v6.13+ backup files
GNU Lesser General Public License v3.0
280 stars 101 forks source link

Add support for ROS v6.43+ AES128-CTR-SHA256 format #16

Closed gurnec closed 3 years ago

gurnec commented 3 years ago

This adds support for the AES128-CTR-SHA256 format. It also fixes a handful of bugs (each in a separate commit), and makes a couple of other changes which may or may not be a good idea:

If you'd rather I remove any of the commits from the PR, or make any other changes, let me know!

I tested this with circa-2016 versions in the hopes that it keeps decent backwards-compatibility (Python 3.5 and cryptography v1.2.3), and very briefly with Python 3.8 and the latest cryptography (v3.2.1), but haven't done a much testing beyond that.

closes #7, closes #8, closes #14, closes #15

BigNerd95 commented 3 years ago

I think it is perfect! Thank you very much! Good job