Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

TFU password encryption
https://www.tinywebgallery.com/forum/viewtopic.php?f=12&t=1267
Page 1 of 1

Author:  hn [ 4. Nov 2007, 14:16 ]
Post subject:  TFU password encryption

I am new to TFU and not sure how to get encrypted passwords to work.
How do I set up TFU to use encrypted passwords, and how do I generate the passwords?

Author:  TinyWebGallery [ 4. Nov 2007, 16:38 ]
Post subject: 

it's not implemented.
You have to add the enycrption by yourself - it's only one additional function call.

I use sha1 to generate the hashes in twg.

In the backend of twg is a generator for passowords - or in the examples folder of twg as well. you chave to copy this file to the main folder to use it

/Michael

Author:  TinyWebGallery [ 4. Nov 2007, 17:03 ]
Post subject: 

i'll add a small password generator in the next build.

/Michael

Author:  hn [ 4. Nov 2007, 17:19 ]
Post subject: 

So, what you are saying is, I need to add some code in tfu_config.php that would use password.php output for the password check?

Or, maybe, if you are planning to add some functionality on this later, I might wait and see what comes up...

Thanks.

Author:  TinyWebGallery [ 4. Nov 2007, 17:25 ]
Post subject: 

yes. you have to edit tfu_config.php.

you only have to change

if ($user == $userarray[0] && $pass == $userarray[1]){

to

if ($user == $userarray[0] && sha1($pass) == $userarray[1]){

and use sha1 generated password files.

I can send you a small php file that generates the passwords.
This will be included in the next version of tfu as well ;).

/Michael

Author:  hn [ 4. Nov 2007, 17:47 ]
Post subject: 

I would really appreciate the sha1 generator file. I will give your code suggestion a try.

Thanks for your help!

Author:  TinyWebGallery [ 4. Nov 2007, 18:52 ]
Post subject: 

sent

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/