Complete ballocks. Ever heard of this little thing called licenses. Pretty much every font will have one, a very small minority of them will allow embedding in web sites.
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 :)
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.
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.
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.
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!!)
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.
Not a complete Auth solution. But I did some work looking for the best way to create a salted hash, and after some discussion on Reddit came up with this.
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.
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.
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.
Thanks to palparepa's points I have improved the functions.
They now use a different method for calculating the offset which means that it can start in 36 / 40 possible positions rather than 16.
Each Hash is also padded to the same length so the length of the salt/password cannot be derived from the hash.
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 :)
Complete ballocks. Ever heard of this little thing called licenses. Pretty much every font will have one, a very small minority of them will allow embedding in web sites.
:$ git blame
WTF? I didn't do that? Maybe I should stop leaving my computer logged in during lunch/cig breaks/etc
Yes.
Your files should not have a trailing ?>
It's bad practice and can lead to all manner of 'headers already sent' woes.
Think of a problem you would like solved. Write an application to solve that problem.
This is the best way to learn any programming language.
For reference material use http://www.php.net/manual/en/index.php and pick up a copy of PHP 5 Objects, Patterns and Practice (published by Apress)
Agreed, if you have nothing better then md5 is better than plain-text. But where sha1 is available why would you not use it?
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 :)
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?
http://kohanaframework.org/
Ook!
Font? Dude would etch that fucking letter in stone!
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.
You could offload the video encoding to a cloud provider: http://www.encoding.com/
http://www.kuro5hin.org/story/2006/3/14/175929/544
Just make sure you switch off by the end of Season 5. And do not under any circumstances watch the 'Back to earth' episodes *shudders*
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.
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!!)
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.
Not a complete Auth solution. But I did some work looking for the best way to create a salted hash, and after some discussion on Reddit came up with this.
Technically, the best type of correct.
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.
[SNIP]
You should really looking at DRY principles. Rather than writing essentially the same code 13 times, there are these things called loops :)
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?
You have a strict doctype and then you use this, tut tut.
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.
But the salt changes each time, the shuffle orders the array in a random order so $chars[0] is random...
Thanks to palparepa's points I have improved the functions. They now use a different method for calculating the offset which means that it can start in 36 / 40 possible positions rather than 16.
Each Hash is also padded to the same length so the length of the salt/password cannot be derived from the hash.
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 :)