Tag archives for Code

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

Swedish Greys - a WordPress theme from Nordic Themepark.