See the last post of this thread: http://www.javaprogrammingforums.com/algorithms-recursion/614-password.html

// Json