Tag archives for Source

How to create a jar file with a source code using ant

hello, today we will be talking about how to create a jar file using ant build while attaching the source code with the jar. so first we do the Build.xml, it should look something like below where you define the…

Posted in Programming | Leave a comment

How to compute SHA256 File HASH using C#

hello i want to share with you a simple way of computing SHA256 HASH using C#. Enjoy using (FileStream stream = File.OpenRead(file)) { SHA256Managed sha = new SHA256Managed(); byte[] hash = sha.ComputeHash(stream); return BitConverter.ToString(hash).Replace(“-“, String.Empty); }

Posted in Programming | Leave a comment

BASE64 Encoding and Decoding Using C

hello there, recently i was struggling to understand how base64 works on windows because i read the RFC and implemented a LIBRARY based on the RFC and it  worked like crippled library, so i started to check the size of the base64 Encoded file…

Posted in Programming | Leave a comment

Logging Function for DLLs using C

hello there, Lately i was writing a DLL in C which to be called from .Net Web Services, and i stumble upon how can i debug the DLL. I found it more convenient to write debug output to file, but i…

Posted in Programming | Leave a comment

Swedish Greys - a WordPress theme from Nordic Themepark.