About Me

Hi, I am Stijn and this is my blog

Photo of Stijn de Witt

On this blog I like to write about things that interest me, or about the problems I encounter and the solutions I found for them. I hope to occasionaly get some guest blogger crazy enough to write a post on my site as well.

I am in my late thirties and have been working as a computer programmer for well over a decade. During my studies I specialized in graphics / image processing and OO languages / component based development (ActiveX / COM/DCOM at the time). During my later career I focused mainly on web development, both server-side (Java mostly) as well as client-side (html / css / Javascript). I am planning to share the tips and tricks I learn on this site.

I am hoping you find something of interest here. If you do, you would make me really happy if you leave a comment on my site. Getting positive feedback from the community is heartwarming and one of the reasons I like blogging. Of course if you think me or my blog stink, you can leave a comment as well, but it will make me much less happy šŸ˜‰

Looking forward to hear from you,

-Stijn

3 responses to “About Me

  1. Hi Stijn de Witt’s.
    Couple months ago, you have comment about how MD5 is being vulnerable for Enterprise Web. I learn a lot from reading your comments, however, I try to implement SHA-256 digest algorithm and it does not seem to work. So I have SHA-256 in the digest field inside Glassfish v3.0.1 b22. I write a simple Java code to print out a password field using SHA-256. I paste that hashed password into the password field inside the database. But it not working. I notice that for the same string, every time I generated the hash, I got a new hash. Is that right? Below is how I hash

    MessageDigest md = MessageDigest.getInstance(“SHA-256”);
    String text = “admin”;
    md.update(text.getBytes(“UTF-8”));
    byte[] digest = md.digest();
    System.out.println(digest.toString());

    Here is the link of the Blog that you commented. I appreciate very much if you can point me to the right direction. Thank you so much for your time
    http://blogs.sun.com/foo/entry/mort_learns_jdbc_realm_authentication

  2. Hi Thang,

    It should definitely not come out different each time. I think you are not using the MessageDigest correctly. Looking at this page it seems you may have to call reset() on the new MessageDigest before using it. It probably got some random salt when you created it, which would explain the result being different each time.

    Let me know if it worked for you.

    -Stijn

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s