GCHQ has a nice tool called CyberChef – if you like bash, imagine being able to string together small tools in a pipeline, in your browser.
https://gchq.github.io/CyberChef/
FedGov has a lot of open source code. Find repos here http://code.gov
NSA Cyber repos: https://github.com/nsacyber/