Results 1 to 10 of 10

Thread: Secure Java with PHP?

  1. #1

    Thread Starter
    Hyperactive Member Iron Skull's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    325

    Secure Java with PHP?

    Hello I am running a Java Applet with really sensitive Data over it.
    The Webserver is running in SSL and now I want to secure it more.
    So I thought of PHPs SSH function.
    Though I ain't very experienced with PHP I thought lets ask before I waste lots of hours on writing a script and then figure out that I shouldnt.
    Well there is a PHP SSH functions. I know he can make a Password less connection and that he does work as a Client. do you guys think I can tunnel the Applet through it.?

    Cheers,
    Robin

    506C65617365205261746520506F7374732E2E2E

  2. #2
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: Secure Java with PHP?

    If you are that worried about it, use putty and tunnel the connection your self.
    If you write a PHP tunnel that would only encrypt the data on the server side.

    SSL already encrypts your data, so if you are that worried about the network you are running it on, don't use it.

    If you know the network admins, its a good chance that they don't sniff out the packets of everyone and figure out passwords/ssn/CC #s. Where I work, they are strict, not stupid.
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  3. #3

    Thread Starter
    Hyperactive Member Iron Skull's Avatar
    Join Date
    Aug 2005
    Location
    The Netherlands
    Posts
    325

    Re: Secure Java with PHP?

    Well, the fact is.. this is a website that people have to be able to access were ever they are.
    Its for a RemoteLinux box that they use.. And all they need is a webbrowser.
    Thats why I cant use PuTTY. And why I wanted to use PHP.

    506C65617365205261746520506F7374732E2E2E

  4. #4
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: Secure Java with PHP?

    I have seen the exsistance of a java based SSH client. Prehaps you should investigate that?

    Although, since you have SSL already, you should be fine. I believe its 128bit encrypted no? Someone check that please.
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  5. #5
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Secure Java with PHP?

    Well php is not the most secure language, yet you can do alot to make it secure as possible. To my knowledge, there are not php SSH functions. I will do a google search though.
    My usual boring signature: Something

  6. #6
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: Secure Java with PHP?

    How is PHP not secure?
    PHP is like Java in some ways, especially when you have safe mode on.
    PHP itself is very secure, its the scripts that people write that make it insecure.

    http://us3.php.net/ssh2
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  7. #7
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Secure Java with PHP?

    if you dont configure php correctly, then it can be secure. ASP.net is more secure then php.
    My usual boring signature: Something

  8. #8
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: Secure Java with PHP?

    Quote Originally Posted by dclamp
    if you dont configure php correctly, then it can be secure. ASP.net is more secure then php.
    I think you ment to say "if you dont configure php correctly, then it can be insecure."


    Actually, I think PHP defaults are pretty secure.
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  9. #9
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Secure Java with PHP?

    haha. oops. Thats what i meant.

    Well there are some settings that need to be change in the php.ini before it is fully Secure.
    My usual boring signature: Something

  10. #10
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Secure Java with PHP?

    Quote Originally Posted by dclamp
    if you dont configure php correctly, then it can be secure. ASP.net is more secure then php.
    Either is as secure as the code you write.

    The -recommended INI file is the better default configuration for PHP (obviously).
    There is also a project called Hardened-PHP which purports to secure it even further. Personally, I think the modifications they do are of little practical use to most server administrators.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width