Encrypt/Decrypt - ASP .NET to NodeJS

I had the same problem with PHP and NodeJS. Perhaps a custom formatter might work like it did for me?