Technical Discussion
  >> Web Design / HTML / Web hosting Forum


Register (or login) on our website and you will not see this ad.


These posts have been archived and can no longer be replied to or modified.
Pages in this thread: 1 | [2] | 3 | (show all)   Print Thread
Standard User ian72
(knowledge is power) Mon 18-Jan-10 09:07:12
Print Post

Re: Encryption using https


[re: RobertoS] [link to this post]
 
I have done the same myself. As far as username and password are concerned you either use SSL to secure the transport of them to the server or you can send them encrypted by using a little local javascript. Here is a snippet from a form that gets the password and encypts it:

<input name="passinput" type="password" maxlength="20" size="20" tabindex="2"><
<input type="submit" value="Login" onClick="form.pass.value = hex_sha1(form.passinput.value); form.passinput.value='';" />


This way the password is always sent one way encypted (so you store the pasword encrypted as well and compare the 2 encrypted passwords). You could do a similar thing with usernames but store them unencrypted and just compare the encrytped versions.
Standard User RobertoS
(legend) Mon 18-Jan-10 09:19:08
Print Post

Re: Encryption using https


[re: ian72] [link to this post]
 
That looks the sort of thing Ian, thanks.

I had a try sticking the login page into httpsdocs and it doesn't want to play. Error 404 even though the URL that appears is correct. Looking deeper into their help there are all sorts of server-side setup questions, I didn't have time to see if I could access those.

I was going to contact PC support about it today but might not bother, as I'm sure the certificate problem will arise.

Bob's broadband basic info/help site:
www.robertos.me.uk
ISP history: Demon dialup >> Freeserve dialup >> BT Broadband >> Prodigynet >> Newnet >> O2 Standard.
Purple Cloud for domain, email and web space.
Standard User ian72
(knowledge is power) Mon 18-Jan-10 09:27:32
Print Post

Re: Encryption using https


[re: RobertoS] [link to this post]
 
The certificate problem will definitely arise - I use httpsdocs myself and get the same thing. But if it is only username and password then client side hashing as per my example should be good enough.

Not sure why your httpsdocs is not working though - mine is fine (I assume you are changing the http at the start of the url to https?).


Register (or login) on our website and you will not see this ad.

Standard User RobertoS
(legend) Mon 18-Jan-10 09:35:04
Print Post

Re: Encryption using https


[re: ian72] [link to this post]
 
I was using relative addressing in the link, as per the PC help files, as I'm starting from a sub-directory in the httpdocs of an existing domain and targeting the httpsdocs in that domain, not the ultimate domain. I did wonder if that may be the issue, so a good idea to try absolute addressing just for the links each way with that page. (And the registration one).

Bob's broadband basic info/help site:
www.robertos.me.uk
ISP history: Demon dialup >> Freeserve dialup >> BT Broadband >> Prodigynet >> Newnet >> O2 Standard.
Purple Cloud for domain, email and web space.
Standard User ian72
(knowledge is power) Mon 18-Jan-10 10:34:47
Print Post

Re: Encryption using https


[re: RobertoS] [link to this post]
 
I have never tried doing relative addressing from an http to https page. At least trying an adsolute address would tell you whether the web hosting is working.
Standard User ian72
(knowledge is power) Mon 18-Jan-10 11:32:37
Print Post

Re: Encryption using https


[re: RobertoS] [link to this post]
 
Just realised you will also need the sha1.js javascript file.

I will PM you with a link to the file on my private web space.
Standard User RobertoS
(legend) Mon 18-Jan-10 12:08:23
Print Post

Re: Encryption using https


[re: ian72] [link to this post]
 
That's great Ian, I have downloaded it thanks.

I thought there had to be something needed but expected to have to hunt it down smile.

Bob's broadband basic info/help site:
www.robertos.me.uk
ISP history: Demon dialup >> Freeserve dialup >> BT Broadband >> Prodigynet >> Newnet >> O2 Standard.
Purple Cloud for domain, email and web space.
Standard User mrrd
(newbie) Mon 18-Jan-10 12:28:33
Print Post

Re: Encryption using https


[re: deleted] [link to this post]
 
It entirely depends on what data is being stored/transferred, if you are based in the UK even then you really should be encrypting more than just financial info, any personal details, logins and password etc should be too, as with the new large data protection fines coming in if you got hacked you would have to show you made every reasonable precaution to avoid getting fined.
Standard User ian72
(knowledge is power) Mon 18-Jan-10 12:48:45
Print Post

Re: Encryption using https


[re: RobertoS] [link to this post]
 
No problem. I'd forgotten I'd used it.
Standard User RobertoS
(legend) Mon 18-Jan-10 13:04:59
Print Post

Re: Encryption using https


[re: mrrd] [link to this post]
 
Good advice thanks, which I shall bear in mind. However I have no current intention of knowingly storing personal information other than the login username and password.

I used to be registered under the DPA and would re-register if I found it necessary.

Bob's broadband basic info/help site:
www.robertos.me.uk
ISP history: Demon dialup >> Freeserve dialup >> BT Broadband >> Prodigynet >> Newnet >> O2 Standard.
Purple Cloud for domain, email and web space.
Pages in this thread: 1 | [2] | 3 | (show all)   Print Thread

Jump to