Monthly Archives: May 2015

How To Safely Hash A Password

If you’re not using bcrypt get with it or be vulnerable

 

Coda Hale writes:

Use bcrypt.

Why Not {MD5, SHA1, SHA256, SHA512, SHA-3, etc}?

These are all general purpose hash functions, designed to calculate a digest of huge amounts of data in as short a time as possible. This means that they are fantastic for ensuring the integrity of data and utterly rubbish for storing passwords.

A modern server can calculate the MD5 hash of about 330MB every second. If your users have passwords which are lowercase, alphanumeric, and 6 characters long, you can try every single possible password of that size in around 40 seconds.

For PHP 5.5, use password_hash(). For PHP 5.3.7 through PHP 5.4.x use the password_compat polyfill on GitHub.

Read the full article at codahale.com

ramjet: Transform One DOM Element into Another

Check out this cool transition effect library for JavaScript

 

Ramjet makes it looks as though one DOM element is capable of transforming into another, no matter where the two elements sit in the DOM tree.

It does so by making copies of the two elements (and all their children), setting a fixed position on each, then using CSS transforms to morph the two elements in sync.

View the demo at rich-harris.co.uk

More Weight Doesn’t Mean More Wait

Improving perceived performance is about time to first render and not so much about time to download all assets

 

Formerly, much of the focus in web performance was concerned with optimizing assets like images and fonts, which does make for a shorter overall page load time. But today there are techniques we can use in addition to file optimization that have an arguably larger impact on how soon our users can see and use the content we’re delivering.

Read more at filamentgroup.com

50 Most Common Interview Questions

Study up: here’s a peek at what interview questions you may face the next time you look for a job

 

Glassdoor did some research on which questions are asked in an interview.

Some you might not expect include:

– What would you look to accomplish in the first 30 days on the job?

– What motivates you?

– Who’s your mentor?

– What is the name of our CEO?

– What would your direct reports say about you?

– What was the last book you’ve read for fun?

– What is your favorite website?

– What makes you uncomfortable?

– How would you fire someone?

Read all 50 questions at Glassdoor Blog