Computer Webmaster Gaming Console Graphics Forum

Welcome to the Computer Webmaster Gaming Console Graphics Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

MK PitStop Main Earn $25 Earn Money Posting Extras Members Blogs Image Hosting User Pages
Go Back   Computer Webmaster Gaming Console Graphics Forum > Webmaster Forum > Website Coding > PHP
Register FAQ/Rules Become A V.I.P. Member Search Today's Posts Mark Forums Read

PHP PHP for some can be one of the hardest website programming codes, so do you need help on your PHP script, if it is php4, php5 or lower this is the place for you for any PHP help.

Google
Reply
 
LinkBack Thread Tools Display Modes
Old 07-01-2007, 3:33 PM   #1
Robert Oschler
 
Robert Oschler's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Good simple method for encrypting/decrypting strings?

The web host I use doesn't support SSL certificates, but I would like to at
least use a fairly stiff encryption/decryption routine to store certain
data. The data to be hidden won't be anything drastically vital like credit
cards or anything, but I do want to keep the casual snooper out.

Does anybody know of a good script set that would help in this area?

Also, what's a good way to keep a MySQL connection login (user name and
password) hidden from snoopers? I don't like seeing them plainly visible
in a PHP script used to connect to an SQL database on the server.

thx

--

Robert Oschler
"Let the web hear you, add your voice to your web site in minutes!"
-- http://audiodirect.spiderchase.com/
(For a limited time, free voiceover with every sign-up, use this link
instead)
-- http://audio.spiderchase.com/


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Advertisements
Old 07-01-2007, 3:33 PM   #2
2metre
 
2metre's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Good simple method for encrypting/decrypting strings?

> Also, what's a good way to keep a MySQL connection login (user name and
> password) hidden from snoopers? I don't like seeing them plainly visible
> in a PHP script used to connect to an SQL database on the server.


It's not a perfect solution, but keep your connection scripts in a directory
*below* your public_html directory so that it's not accessible except via
scripts.
eg
if
~user/public_html
is the base directory for your served pages
keep connection scripts in
~user/inc


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 3:35 PM   #3
Ron
 
Ron's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Good simple method for encrypting/decrypting strings?

"Robert Oschler" <no_replies@fake_email_address.invalid> wrote in message
news:lzZOa.11017$Hw.8242926@news2.news.adelphia.ne t...
> The web host I use doesn't support SSL certificates, but I would like to

at
> least use a fairly stiff encryption/decryption routine to store certain
> data. The data to be hidden won't be anything drastically vital like

credit
> cards or anything, but I do want to keep the casual snooper out.
>
> Does anybody know of a good script set that would help in this area?
>
> Also, what's a good way to keep a MySQL connection login (user name and
> password) hidden from snoopers? I don't like seeing them plainly visible
> in a PHP script used to connect to an SQL database on the server.
>
> thx
>
> --
>
> Robert Oschler
> "Let the web hear you, add your voice to your web site in minutes!"
> -- http://audiodirect.spiderchase.com/
> (For a limited time, free voiceover with every sign-up, use this link
> instead)
> -- http://audio.spiderchase.com/
>
>


Hi Robert,

take a look in PHP Classes http://ronbarnett.users.phpclasses.org/

There are a number of encryption routines there, some for MySQL and some for
text files too.
There is a particularly nice one using a salt generated from some system
variables and microtime which then creates an MD5 , so you get a 128bit key
with huge entropy from quite a short initial seed.


Regards

Ron


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 07-01-2007, 3:38 PM   #4
Shawn Wilson
 
Shawn Wilson's Avatar
 
Posts: n/a
My Photos: (0)

Banked:
MK Cash: $

I am Worth:
MK Cash: $
Donate

Recent Blog: None

Default Good simple method for encrypting/decrypting strings?

Robert Oschler wrote:

> The web host I use doesn't support SSL certificates, but I would like to at
> least use a fairly stiff encryption/decryption routine to store certain
> data. The data to be hidden won't be anything drastically vital like credit
> cards or anything, but I do want to keep the casual snooper out.
>
> Does anybody know of a good script set that would help in this area?
>
> Also, what's a good way to keep a MySQL connection login (user name and
> password) hidden from snoopers? I don't like seeing them plainly visible
> in a PHP script used to connect to an SQL database on the server.


For the encryption, try str_rot13() -- it's unbreakable :o)

For the logins, I use an include file that's not in a web-accessable directory.
That way, if PHP even goes kaplunk, your password isn't exposed. Helps when
changing username and password, too.

Shawn
--
Shawn Wilson
shawn@glassgiant.com
http://www.glassgiant.com


 
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Featured Websites
Free Space
Free Space
Free Space Free Space
Reply
Tags: , , , ,




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Method using PHP & HTML ?? James PHP 9 07-01-2007 3:17 PM
best method for simple web menu buckwheat Graphics in general 4 06-11-2007 8:06 PM
Best payment method? Graham Ebay Technical Questions 0 05-30-2007 1:36 AM
Best payment method? Dave Ebay Technical Questions 0 05-30-2007 1:36 AM
Where's info on search for partial strings? (e.g., wildcards, regular expressions, ...) david.goggin@gmail.com MSN questions 0 05-28-2007 1:45 AM


Featured Websites




All times are GMT +1. The time now is 2:20 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0
Cheap Computers
MK PitStop Copyright 2005 - 2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98