Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum

Get help for TinyWebGallery, the best image gallery. The forum is also home for the Joomla JFUploader, TWG Flash Uploader and the Wordpress flash uploader.
It is currently 23. Nov 2024, 18:08

This forum is readonly now. Please use the new forum if you don't find the answer to your question here. The new forum is at https://www.tinywebgallery.com/blog/forum/


All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: TFU password encryption
PostPosted: 4. Nov 2007, 14:16 
Offline

Joined: 4. Nov 2007, 14:11
Posts: 3
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?


Top
 Profile  
 
 Post subject:
PostPosted: 4. Nov 2007, 16:38 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 4. Nov 2007, 17:03 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
i'll add a small password generator in the next build.

/Michael


Top
 Profile  
 
 Post subject:
PostPosted: 4. Nov 2007, 17:19 
Offline

Joined: 4. Nov 2007, 14:11
Posts: 3
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.


Top
 Profile  
 
 Post subject:
PostPosted: 4. Nov 2007, 17:25 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
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


Top
 Profile  
 
 Post subject:
PostPosted: 4. Nov 2007, 17:47 
Offline

Joined: 4. Nov 2007, 14:11
Posts: 3
I would really appreciate the sha1 generator file. I will give your code suggestion a try.

Thanks for your help!


Top
 Profile  
 
 Post subject:
PostPosted: 4. Nov 2007, 18:52 
Offline
Site Admin
User avatar

Joined: 1. Aug 2005, 12:53
Posts: 11232
sent


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
powered by phpbb | Datenschutz/ Privacy policy