Live data from Hacker News

Blade: a Java Web Framework

github.com

31–40 of 61 posts

Re: Blade: a Java Web Framework

#31
post #25
post #23

Earlier quoted context omitted.

Okay I understand this much better now. I was assuming this was about remote access exploit not a local one. Point taken. Use SHA-? instead of MD5.

Yep. SHA-256 is a good bet at the moment, or SHA-3 if it's an option.

Not really, bcrypt is the only bet, SHA-256 is also too fast

Re: Blade: a Java Web Framework

#33
post #18

I'm a bit tired of these sinatra like web frameworks these days. Repetitive url patterns are not that elegant. Why not simply building the API around the fundamental REST concept, the resource? And what about proper content negotiation? JAX-RS has a nice API without much boilerplate and it is more powerful than most "micro web frameworks".

Which is why my favorite "micro"-"framework" -- is Dropwizard, which is fully JAX-RS.

Re: Blade: a Java Web Framework

#34

I fail to see the difference with http://sparkjava.com We are using Spark four new code in our product and we are happy with it.

A very important one I can see is that Blade targets back to Java 6, whereas Spark only targets Java 8. This makes it available on slow moving platforms like Google App Engine.

Re: Blade: a Java Web Framework

#35
post #20
post #12

Earlier quoted context omitted.

As I'm not up to the current security research, what is problem with using md5 hash of name+password? Is the missing salt problem you are refering to? Brute forcing md5 is easier than some other hashing algo because of collisions? (And I would disagree that knowing that how to properly hash passwords means that the whole framework itself is poorly designed)

Speed is the problem. ocl-hashcat can test in the region of 6 billion MD5 hashes a second on a decent GPU. With a random salt and, say, an 8 character password it'd take a long time, but not so long it's impossible. On a site that includes rules like 'Must have an uppercase letter', 'Must include a number', and 'Must include a special character' you actually reduce the size of the space and consequently make the pass…

The password store in Yesod contains nice documentation about how it works. I found it very enlightening and reassuring to read: https://github.com/yesodweb/yesod/blob/master/yesod-auth/Yes...

Re: Blade: a Java Web Framework

#36
post #3

Looks like simpler Java frameworks are on the rise now ( http://www.pippo.ro/ , http://sparkjava.com/ , http://www.rapidoid.org/ )

You can add this one to the list: http://www.takes.org/

As well as Jodd [0], Play [1] and many more [2, 3].

[0] http://jodd.org/

[1] https://www.playframework.com/

[2] http://www.gajotres.net/best-available-java-restful-micro-fr...

[3] http://www.javaworld.com/article/2995526/developer-tools-ide...

Re: Blade: a Java Web Framework

#37
post #22

Could someone please explain me where the benefit is over using some embedded tomcat/jetty, weld, jersey, hibernate/jdbc? Setting up such a project cost me 30 min and gives me full flexibility choosing the stack I need for my project.

none actually. I think these kind of frameworks essentially reduces lot of boiler plate code. Your code might look a bit cleaner.

Re: Blade: a Java Web Framework

#38
post #25

Earlier quoted context omitted.

Yep. SHA-256 is a good bet at the moment, or SHA-3 if it's an option.

Not really, bcrypt is the only bet, SHA-256 is also too fast

If we are going to be correct about this then let's actually be correct and not just say bcrypt is the only bet. You want a system that manages work rate. Off the top of my head that also includes scrypt and pbkdf2.

Re: Blade: a Java Web Framework

#40
post #30
post #3

Looks like simpler Java frameworks are on the rise now ( http://www.pippo.ro/ , http://sparkjava.com/ , http://www.rapidoid.org/ )

About time. Since the advent of java 8 the platform is rejuvenating. This is clearly an example of that.

Is it? You could write a sinatra-like microframework in java a long time ago (I did). Just use methods instead of lambdas.

Though, perhaps 8 has inspired framework developers, and - more importantly! - attracted a more adventurous userbase?

Post reply on HN