Need some help with my basic encryption system.

Hello, for an assignment we were asked to develop an encryption algorithm using any method we liked, for this I chose C# and have been making steady progress. However right now I'm at the point where my output (in the decryption section) is not working properly and I can't figure out why.

Example of wrong output:

|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dyuP|zB^*!dy 

Link to file: Git-Hub

I believe the code around line 403 seems to cause this issue but I'm unaware of how to rectify it. Any hints or tips would be greatly appreciated.

Thanks

by CEObrainz via /r/csharp

Leave a Reply