Javascript to C# - couple of methods needing conversion, encryption

Job ID: 32796922

Budget: $10 – $30 USD

I have a couple of short methods I need converting from Javascript to C#, predominantly based around some decryption. The encrypted data is publicly available from the URL in the linked Github page, and the decrypted data will be a string in JSON format.

I just need a simple .NET5/6 C# console program that fetches the data (about 900kB), decrypts it, and ends up with a string (or JSON object). I do *not* need lines 16, 25-39, or 51 onwards. The URL for the data is contained in the GIthub page, along with the keys needed to decrypt.

https://github.com/Vivalize/Amtrak-Train-Stats/blob/master/main.js
Related categories: JavaScript C# Programming Encryption