Live data from Hacker News

Blade: a Java Web Framework

github.com

21–30 of 61 posts

Re: Blade: a Java Web Framework

#21
post #16

Earlier quoted context omitted.

If someone has local access then it's easy to crack any passwords (of any hashing algo). However if the cracker has local access and/or full access to DB then weak password hashing is one of the least problems.. Making password checking slower is very easy if the cracker doesn't have local access. Just sleep for XXX ms at every hash check and double it for every incorrect attempt (per IP).

Password hashes are stolen in a variety of ways, when attackers find a way to dump arbitrary files or get results of arbitrary SQL strings, even one byte at a time. Yes, if that happens the site is toast, but 99% of its users have used that password somewhere (everywhere) else. That's not your fault, but using a better hashing algorithm is so trivial that it makes you an asshole to betray your users like that.

Okay so the original comment was probably about cracking MD5's then. Thanks for clarification as this was not clear from the original comment.

Re: Blade: a Java Web Framework

#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.

Re: Blade: a Java Web Framework

#23
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…

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.

Re: Blade: a Java Web Framework

#24
post #3

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

Very happy to see this trend catch up with Java.

I can vouch for Dropwizard. Have used in a few tier-1 services and it has worked out fabulously well.

http://www.dropwizard.io/0.9.1/docs/

Re: Blade: a Java Web Framework

#25
post #23
post #20

Earlier quoted context omitted.

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…

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.

Re: Blade: a Java Web Framework

#26
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".

Then you will like JSR-371. This is extending JAX-RS to deal nicely with routing to HTML templates.

https://jcp.org/en/jsr/detail?id=371

Re: Blade: a Java Web Framework

#27
Looks like NancyFx. After having worked a little with Java/Spring recently and coming from a C#/.NET background it's nice to see the Java world is finally starting to discover the benefits of Keeping It Simple...

Re: Blade: a Java Web Framework

#28

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.

I have been using spark since 2013. One thing that I see that this framework provides in DSL for DB like operations. In spark you have to configure out of the box

Re: Blade: a Java Web Framework

#29
post #4

hmmm... public User signin(String username, String password) { String pwd = EncrypKit.md5(username + password); return model.select().eq("username", username) .eq("password", pwd).fetchOne(); }

If you haven't already, you should consider opening a pull request.

Re: Blade: a Java Web Framework

#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.
Post reply on HN