WebFaction
Community site: login faq

Hi,

What is a good way to store passwords using php and postgresql and what columns/column types do I need to do so?

I understand I want to salt and hash the passwords but don't quite grasp how to actually implement it.

Also is pgcrypto an option here?

Thanks

asked 27 Mar '11, 15:04

Paddy Martinez
1337
accept rate: 0%


If you want a pure PHP solution you should not use pycrypto as it is a python library. In general this question has no simple answer since there are so many ever changing ways of encrypting your passwords, instead I recommended you read the following,

permanent link

answered 27 Mar '11, 15:18

johns
5.3k212
accept rate: 23%

edited 17 Jun '11, 11:12

seanf
12.2k41836

pgcrypto is a postgresql library

(27 Mar '11, 15:28) Paddy Martinez

My fault, I am a python developer and I read pycrypto.

(27 Mar '11, 15:35) johns

We can make pgcrypto available on your database if you need it - just open a support ticket to let us know the name of your database, and we'll set up pgrypto for you.

(17 Jun '11, 11:09) seanf
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×108
×69
×44
×37

question asked: 27 Mar '11, 15:04

question was seen: 3,743 times

last updated: 17 Jun '11, 11:12

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM