Tech Rescue
  • Home
  • Acronyms
  • Cheat-Sheets
  • User Manuals

Cybersecurity

AES GCM in .NET 8 (.csx script)

AES GCM in .NET 8 (.csx script)

Well, sooner or later, I would need a way to encrypt things, a safe way, therefore here I leave the code for AES GCM string encryption with .NET 8. I assume you already have .NET 8 installed as well as dotnet-script. #!/usr/bin/env dotnet-script /* ====================================================================== + AES-GCM (Galois/Counter Mode) -
Hector Perez Mar 4, 2025
AES Encryption Decryption Tool in .NET 8 (Console App)

AES Encryption Decryption Tool in .NET 8 (Console App)

Here is the code! copy it and paste it inside a file (say AESFileEncryptDecrypt.csx) and then run it with dotnet-script AESFileEncryptDecrypt.csx. I am assuming that you already have dotnet-script tool installed globally in your computer as well as .NET 8 SDK. In case you don't, you can install
Hector Perez Feb 24, 2025
Tech Rescue © 2025. Powered by Ghost