-4

encoded Data = (encoded Data | bit Shift Buffer)

rex_yoy
  • 13
  • 3

1 Answers1

3

This line:

j = j + 1 == key.Length ? 0 : j + 1;

could also be written as:

if ((j+1) == key.Length)
    j = 0;
else
    j = j+1;
SQL Police
  • 4,127
  • 1
  • 25
  • 54
  • 1
    you might want to fix that missing semicolon. – JesseChunn Nov 24 '20 at 19:33
  • 1
    @JesseChunn I did it for them, simple type-o. – Trevor Nov 24 '20 at 19:34
  • @Codexer ... wow, I just realized that I / you can edit other peoples answers. Scary, but cool. – JesseChunn Nov 24 '20 at 19:38
  • 2
    @JesseChunn: with reputation comes power. Each time you hit a specific reputation level you get another quantum of power. Codexer has nearly 7k of reputation, so there's lots of things he can do. Folks with lots of reputation are trusted enough that the site knows if they edit a question or answer, then they aren't messing with the intent of the text, just making it better. – Flydog57 Nov 24 '20 at 19:53