Security

6 posts

2026

How to Use .env Files to Keep Your API Keys Out of Git

How to use .env files to keep API keys out of Git. Setup for Python, Node.js, and C#, plus what to do if you already committed a secret.

2021

How to Hash a String - C#

How to hash a string in C# using MD5, SHA256, and other algorithms from System.Security.Cryptography.

How to find and stop processes using Powershell

How to use Get-Process and Stop-Process in PowerShell to find and kill running processes.

Add your IP address as an NSG rule in Azure using Powershell

How to add your IP address to an Azure Network Security Group using PowerShell.

Getting and setting Execution Policy in Powershell

How to use Get-ExecutionPolicy and Set-ExecutionPolicy in PowerShell to manage script permissions.

Loading scripts disabled on this system - Powershell

How to fix 'ps1 cannot be loaded because running scripts is disabled on this system' in PowerShell on Windows.