Commit Graph

8 Commits

Author SHA1 Message Date
4ecdacedab Optimizations, modernizations, cleanup 2019-02-22 11:04:41 -06:00
fca6ebedd6 Nicer formatting, easier to read 2019-02-21 21:40:41 -06:00
edc7050279 Manually cleaned up MakeKeyFromBlock
I don't completely understand the algorithm that's being employed here, but at least the code is no longer hideous machine-generated unreadable nonsense. Should be much easier to translate to other languages now.
2019-02-21 14:25:19 -06:00
b1cb846420 Cleaned up everything except MakeKeyFromBlock() 2019-02-21 13:34:08 -06:00
fa550d073e Actually fixed encryption for passwords
After messing with my home system for a bit, I realized that the encryption was not actually working and my password was getting rejected. I found a different decompiler which generated different (more sensible) code which is now generating the same password as the desktop Pentair app and is able to remotely login. This code needs a lot of manual deobfuscation.
2019-02-21 12:16:10 -06:00
810342ecc9 Slightly improved encoder
It's still an ugly decompilation job, but it appears to be working, at least.
2019-02-20 15:09:21 -06:00
e524e394c6 C#-ified
Converted as much ugly code as I could find into appropriate C#-friendly versions. For example, all the manual ByteHelper stuff, buffer index tracking, etc. are now BinaryWriters/BinaryReaders. Also cleaned up a bunch of getter and setter methods to use C# properties.

There's still more to be done here, but this greatly simplifies the code for reading and comprehension.
2018-03-28 15:30:05 -05:00
97c4febdf5 Initial commit
Conversion of the UWP app into a .NET Core app for portability. Requires .NET Core 2.0 and C# 7.1
2018-03-18 23:04:19 -05:00