Security tooling is not written in a single language. Python powers most automation. C sits at the exploit layer. PowerShell ...
These implementations are for demonstration purposes. They are less efficient than the implementations in the Python standard library.