![]() |
|
[C#] AES-GCM-256 in C# - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [C#] AES-GCM-256 in C# (/showthread.php?tid=6036305) |
AES-GCM-256 in C# - draxyee - Dec 28, 2019 Can anyone help me encrypt a string with AES-GCM-256 using C#? Appreciate the help. 🤝 RE: AES-GCM-256 in C# - Morpheus - Dec 28, 2019 You can just use AuthenticatedAesCng class in Security.Crypography NuGet package from Microsoft to do encryption/decryption. RE: AES-GCM-256 in C# - draxyee - Dec 28, 2019 (Dec 28, 2019 09:52 AM)$kip Wrote: You can just use AuthenticatedAesCng class in Security.Crypography NuGet package from Microsoft to do encryption/decryption. Do you have any sample code perhaps? I saw this answer somewhere else, but I'm somewhat lost.
RE: AES-GCM-256 in C# - Morpheus - Dec 28, 2019 (Dec 28, 2019 09:54 AM)draxyee Wrote: Do you have any sample code perhaps? Yes i've copy & paste the answer because i've used this method and it worked. Where are you lost ? RE: AES-GCM-256 in C# - draxyee - Dec 28, 2019 (Dec 28, 2019 09:55 AM)$kip Wrote: Yes i've copy & paste the answer because i've used this method and it worked. Could you provide maybe some sample code? RE: AES-GCM-256 in C# - MavenGradle - Dec 28, 2019 Did you try searching for your problem? It's literally the second result on google: https://www.codeproject.com/Articles/1265115/Cross-Platform-AES-256-GCM-Encryption-Decryption Something tells me you're trolling in the coding section. How about you get your character set knowledge up to date before performing encryption? That would seem more fitting. |