I want to encrypt and decrypt an excel file via rc4

Obtain a code in c. I want the same in c#.

RC4 is insecure and has been marked as "avoid" by CISCO. You should choose a different algorithm.

Additionally, is there any particular reason you chose a stream cipher rather than a block cipher?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.