Passing by Reference: C’s Garbage Collection

The C programming language has no built-in garbage-collection mechanism – and it very likely never will. This can (and does) lead to memory leaks by even the best programmers. It is also an imputes for the Rust language. However, depending on your use-case, it is still possible to structure your code to use the stack…

Continue reading

SHA1 on FreeBSD Snippet

I needed some code that produces SHA1 digests for a project I am working on. I hunted through the FreeBSD’s sha1(1) code and produced this minimal snippet. Hopefully this helps someone else in the future. Compile and run as follows: $ cc shatest.c -o shatest -lmd $ ./shatest 10d0b55e0ce96e1ad711adaac266c9200cbc27e4 $ printf “bismillah” | sha1 10d0b55e0ce96e1ad711adaac266c9200cbc27e4…

Continue reading

Found Old Chat Server Project

During my high school years, I used to be part of an “underground” IRC server. We would talk about security-related topics and the latest exploits, usually about some Unix variant. Even though no one would really care about our late-night computer conversations, I thought it best that we chat over an encrypted medium, and considering…

Continue reading