It takes a while to read, but it's very much worth it. If you still think you should be writing your own crypto code, or even using native crypto libraries, you are DOING IT WRONG.
P.S. Same goes for parsers! Learn to use ANTLR or any other of the hundreds of parser generators out there.