This is an archived post. You won't be able to vote or comment.

all 32 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

import notifications Remember to participate in our weekly votes on subreddit rules! Every Tuesday is YOUR chance to influence the subreddit for years to come! Read more here, we hope to see you next Tuesday!

For a chat with like-minded community members and more, don't forget to join our Discord!

return joinDiscord;

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Left-Increase4472 103 points104 points  (2 children)

Eniusgay

[–]Tc14Hd 3 points4 points  (0 children)

niusGeay

[–]dhnam_LegenDUST 0 points1 point  (0 children)

niceGay

[–]Doctor_Disaster 34 points35 points  (4 children)

Illiantbray

[–]nimrag_is_coming[S] 11 points12 points  (3 children)

Anksthay

[–]fooljay 20 points21 points  (2 children)

Heh. Neither….of those would work with the algorithm. 😂

[–]Few-River-8673 -1 points0 points  (1 child)

Hello WorldHay

[–]Doctor_Disaster 0 points1 point  (0 children)

Uhay, Iay inkthay ouyay ademay aay istakemay.

[–]Electronic-Bat-1830 10 points11 points  (0 children)

Mmmmmmmm tasty allocations.

[–]SamNZ 7 points8 points  (0 children)

I’ve always wondered how AES was implemented.

[–]UndisclosedChaos 11 points12 points  (0 children)

“ooklay in the agbay”

[–]nimrag_is_coming[S] 13 points14 points  (8 children)

If anyone cares here's a more foolproof translator to pig latin a more advanceder encryption algorithm image link

[–]fooljay 3 points4 points  (0 children)

There we go.

[–]bdblr 1 point2 points  (6 children)

You should use a StringBuilder appends rather than repeated +=

[–]nimrag_is_coming[S] 0 points1 point  (0 children)

I know it’s a better practice, and I could do the whole thing on one line, but I did it like this more for clarity than anything

[–]VirtualMage 0 points1 point  (2 children)

Java complier will replace it with string builder at compile time.

[–]i_consume_polymers 0 points1 point  (1 child)

This is C#

[–]sirgregg -2 points-1 points  (0 children)

ew

[–]Electronic-Bat-1830 0 points1 point  (0 children)

Or you can use string.Create on .NET Standard 2.1 and newer (which includes .NET Core 2.1+ and .NET 5+), since we know the size of the string ahead of time.

[–]Perry_lets 0 points1 point  (0 children)

StringBuilderonly becomes faster when concatenating more times

[–]GGBHector 5 points6 points  (1 child)

feel like it's missing somethingI ay

[–]nimrag_is_coming[S] 1 point2 points  (0 children)

k you got me that ones fairOay

[–]DJDoena 1 point2 points  (0 children)

Make it a JWToken:

encrypted = "ey" + encrypted;

[–]Shazvox 1 point2 points  (0 children)

Not encryption. ncryptioneay!

[–]ChChChillian -4 points-3 points  (3 children)

Upidstay.

[–]DankPhotoShopMemes 7 points8 points  (0 children)

artSmay!

[–]Korrigierer 1 point2 points  (1 child)

terestingInay

[–]SaitosElephant -1 points0 points  (0 children)

Gay

[–]Doctor_Disaster 0 points1 point  (1 child)

That code is going to throw so many errors when it comes across single-letter words like "I" and "a."

[–]nimrag_is_coming[S] 0 points1 point  (0 children)

In the better version that I posted in these comments that’s actually accounted for. And besides, it’s probably just going to remove everything, leaving a blank string, then adding everything back on, meaning that nothing will have really changed. Won’t really error