>Since the size of the hex presentation is twice the size of the byte array, you have to multiply by 2
>
>>> StringBuilder sb = new StringBuilder(length * 2);
>
>
>
>The bitshift: shifting one bit to the left (provided the argument is not negative) is faster. I prefer that
Thanks