title: Codeigniter: Is encrypting a password like this secure?
body: <p>I was wondering if someone could me some advice please?  I was wondering how secure/insecure or otherwise rubbish the following code is for encrypting passwords using Codeigniter?</p>
  
  <pre><code>$safe_password = sha1($password, $config['encryption_key'])
  </code></pre>
  
  <p>If not secure can people give me some tips to make it more secure using Codeigniter please?</p>
  
  <p>Many thanks :) </p>