Skip to content

u/pffffft

In this archive from Jul 2009 to Jun 2010

4
posts
26
comments
0
media
82
score

Hash, always hash.

If an attacker has access to the encrypted passwords you have to assume a complete breach which would mean they have access to your code as well and at some level your code needs to know how to de-crypt those passwords, so so will the attacker. Which means you might as well store them as plain-text.

Hash users passwords using a random salt and stretching to the maximum amount you feel is acceptable (a 0.75 second delay in logging in will be acceptable to your users, but increasing the time taken to generate single hash by a thousand fold will make brute forcing hashes unreasonable)

To offer reset make it a simple form, 1 field for email. User enters email and they are emailed a link with a single use UID appended to it. Make these time sensitive (they become invalid after 20mins?) as well, maybe link them to IP address as it is not likely for a users IP to change in the time between them submitting form and clicking link in email.

Page that loads shows a form to enter new password and logins them in. Can't ask for easier :)

2 points

why not use sha1? It is 1 extra character to type but you don't get people thinking you're an idiot for using md5.

You argue md5 is strong enough for most applications, but why not use the better option when it requires ZERO additional effort?

2 points

Also store data in its raw form (or as close as possible within your DB) should sometime in the future you decide that you want to do something different with the data and you have already parsed it is going to make things more difficult for you.

For example: yesterday you might have converted [b] to <b>, today you might want to convert it to <strong> and tomorrow you might be back converting it to <b> again.

But if you are worried about performance then as has been mentioned already, store both. But never just store the processed data.

1 points

Polymorphism shouldn't be a new concept to anybody. You deal with it every day in the real world. There's more than one class of cat to skin, but you skin 'em the same way, even if the specific instance is completely new to you. Let's say for example you want to fuck a hole. You fuck all holes the same. You don't care if that hole happens to be a mouth, an ass, or a pussy, you're gonna fuck it the same way regardless. However, the mouth, pussy, or ass may respond differently to the fucking.

http://www.kuro5hin.org/story/2006/3/14/175929/544

6 points

But by the end (if I remember right?) could they not tell with fairly decent accuracy if you would survive or not, based upon wether or not you had a certain brain thingy? (I know highly technical!)

Anyways is a bit of a moot point as the healers guy's brother became ground zero. From how I understood it (and remember it, tho I did finish watching it a while ago, so memory might be wrong - tho hope it is not) he mutated the promicin, or at least modified it so you no longer needed the shot, it became like a virus, like super-swine flu. Infecting all those who came in contact with it.

So you either got powers or died, like his mom. The choice of taking the shot was gone, it was now an infection.

1 points

Is it just me or does nobody really seem to be getting it?

Firefly Conundrum goes like this.

Week 1: <Joe Bloggs> "Oh this series sounds ok, I'll wait and see what everyone else thinks before I invest my time though."

Week 5.5 <Joe Bloggs> "OMFG This series sounds as awesome as that fan erotica I wrote with 7 of 9. I'm so torrenting the last 4 episodes."

Week 5.56: <TV Exec> "Ok, numbers suck compared to 'I'm a desperate celeb, I'll suck a sloths left testicle for 5 more mins of fame' cancel the fucker!"

Week 6 <Joe Bloggs> "Noooooooooooooo. They always cancel my fav shows! They don't have no vision. This would have been the greatest thing ever. I would watch every single......ohhh butterfly, hehehe runs away giggling"

Take a chance on a new series by watching it when it airs. I know, cable companies are evil and Television should all be on-demand. I agree! But you know what in the meantime, the people who are pushing up the ratings are the day-time Jeremy Kyle watchers and the companies are out to make money. So if you want decent programming then vote with your channel changers. Watch them when they air. DVD sales can make a big difference, very rarely, as shown by Family Guy, but for the most part it is how well it does when it first airs.

That is unless of course you are happy enough with entire networks full of Jeremy and deal or no deal (which totally takes skill btw!!)

2 points

A bit of both. As far as I understand the story was meant to continue but they knew it wasn't going to get picked up for another season so they did a pretty good job of ensuring the last season had an acceptable ending.

2 points

I don't really believe it is security by obscurity though. Ok strict definition it is, but in this case I don't believe it to be a bad thing :)

I do like the simplicity of your solution but the problem for me is the salt is not random. Yes, it changes for each password which is good, and it does mean rainbow tables are near useless, however brute forcing that method is pretty much the same as brute forcing an un-salted hash.

Am starting to think the best way is to use a random salt, perhaps even your method above, coupled with stretching. The random salt rules out rainbow tables and the stretching prevents brute forcing.

1 points
$("p#test2 a").fancybox({
    'zoomSpeedIn':	920, 
    'zoomSpeedOut':	920, 
    'overlayShow':	true
});

[SNIP]

$("p#test13 a").fancybox({
    'zoomSpeedIn':	920, 
    'zoomSpeedOut':	920, 
    'overlayShow':	true
});

You should really looking at DRY principles. Rather than writing essentially the same code 13 times, there are these things called loops :)

class="{frameWidth: 425, frameHeight: 425}"

Wut?

Saw at least 2 elements with id 'sub' and a crap load with id 'box'. Ids should be unique, that is they should only appear once on each page.

And do these paragraphs all really need the class 'test' surely you could just use #box p {} though it should be .box p {} Though if it was me I would have used another element altogether, not sure what though....what should would I use for a list of sites?

target="_blank"

You have a strict doctype and then you use this, tut tut.

border="0"

You got some presentation in your structure

And am not even going to get into http://pixeia.com/contact2.php coughtablescough

Sorry but for someone with 11yrs experience you shouldn't be making these kinds of simple mistakes. So I think 3k a month is a bit much. Am going to assume you are talking USD as you don't specify. So converting to GBP that would be ~22K.

In my area that is mid-level. A mid level developer would be expected to produce cleaner code. Especially someone who specializes in front-end code.

4 points

It's not so much about the strength of the salt as to the method it is stored. In order to generate the password hash to check a login at a later date the system needs to know the salt and password which means storing the salt somewhere.

Normally the salt is stored in the table along with the hash. But this means if the hacker/cracker has access to the table they have the hash & salt. Someone who is determined can then generate a new rainbow table including the hash.

Granted that if the salt is different for each user then creating a rainbow table for each is not going to happen. But you could target a single account such as an admin's.

This method means that you cannot even target a single account as without knowing the original password you can't know the salt :)

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.