C# implementation of Rob Napier's RNCryptor