You are here: Re: encrypting a string (and server varaibles) « PHP Programming Language « IT news, forums, messages
Re: encrypting a string (and server varaibles)

Posted by Dikkie Dik on 12/03/06 15:57

First, use a session.
For each file you make accessible to the client, create a hash and store
the (hash, filename) pair in the session. Use the hashes for
communication with the client.
This has two advantages:
1. Your filenames will not be sent to the client and ara therefore not
visible.
2. Just trying to submit random other values will not work, as there is
no hash defined for them. So they can not be translated to a file.

Best regards

Brian Huether wrote:
> I have a function that serves audio as a stream. I don't want people to see
> the filename. But I am using urls of this sort:
>
> audio.php?op=serveaudio&file=www.somefile.mp3
>
> 1) How can I encrypt www.somefile.mp3 and then reconstruct it?
>
> 2) How should I really be doing this? Should I be putting the file name into
> a server variable? If so, what would that syntax be?
>
> thanks,
>
> brian
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация