Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-27-2012, 06:09 PM   PM User | #1
sonny
Regular Coder

 
sonny's Avatar
 
Join Date: Apr 2008
Location: United States
Posts: 567
Thanks: 88
Thanked 0 Times in 0 Posts
sonny can only hope to improve
Encript with php, decrypt within windows without php?

Hi, looking for advice, I would like too encrypt a few generated files on line, got that part
working wondering if anyone knows of a windows program that can decrypt them, when
down loaded I'm open to change or modify my php decryption method if I have too. I'm
just trying to protect some important data from prying eyes, I'm also looking into the best
way of protecting my email being sent by php mail to me as well.

Thanks
Sonny

Hope everyone has a great New Year!, I appropriate all the help this forum gave me during
2012 especially' you guys know who you are, I just wanted to take a moment and thank all of
you!!!. you taught me so much, sometimes I sit back in amazement with all the things I can
do know.
sonny is offline   Reply With Quote
Old 12-27-2012, 06:20 PM   PM User | #2
tangoforce
Senior Coder

 
tangoforce's Avatar
 
Join Date: Feb 2011
Location: Your Monitor
Posts: 3,667
Thanks: 46
Thanked 456 Times in 444 Posts
tangoforce will become famous soon enoughtangoforce will become famous soon enough
That depends on what encryption you are actually using?
__________________
Please don't be rude: Put your php code in [php][/php] tags. It is a sticky topic at the top of the forum and it HELPS us to HELP YOU!
TIP: Coding styles and $end errors :::::::::: TIP: Warning: Cannot modify header information - headers already sent :::::::::: TIP: Quotes / Parse error: syntax error, unexpected T_..
PHP Code:
//Please don't use this for your form processing:
if (isset($_POST['submit']))
//Internet explorer has a bug and does not always send the submit value. 
Explanation: The IE if(isset($_POST['submit'])) bug explained.
tangoforce is offline   Reply With Quote
Old 12-27-2012, 08:03 PM   PM User | #3
Redcoder
Regular Coder

 
Redcoder's Avatar
 
Join Date: May 2012
Location: /dev/couch
Posts: 309
Thanks: 2
Thanked 46 Times in 45 Posts
Redcoder has a little shameless behaviour in the past
Depends on the Algorithm used mate. Your PHP prgram has to use the same algorithm as the Windows program.

To prevent prying and such...that is when the data is in transit(not when already in the server and you don't want tech guys to check that is has arrived in the server), use SSL encrypted GMAIL servers.

Check out this example that uses the Gmail servers to send the email.

http://www.vishalkumar.in/2009/06/ph...smtp-tutorial/


Happy Holidays Brogrammer!
__________________
For professional Hosting and Web design.....


NetEssentials.co.uk
Redcoder is offline   Reply With Quote
Old 12-27-2012, 09:52 PM   PM User | #4
sonny
Regular Coder

 
sonny's Avatar
 
Join Date: Apr 2008
Location: United States
Posts: 567
Thanks: 88
Thanked 0 Times in 0 Posts
sonny can only hope to improve
Quote:
Originally Posted by Redcoder View Post
Depends on the Algorithm used mate. Your PHP prgram has to use the same algorithm as the Windows program.

To prevent prying and such...that is when the data is in transit(not when already in the server and you don't want tech guys to check that is has arrived in the server), use SSL encrypted GMAIL servers.

Check out this example that uses the Gmail servers to send the email.

http://www.vishalkumar.in/2009/06/ph...smtp-tutorial/


Happy Holidays Brogrammer!
I'm using php's encrypt and decrypt that's all
I would like to be able too decrypt a file with
my laptop without installing an Apache server on it?

I am talking about important files that may sit on
the server, I always use SSL that's not my concern.

I thought maybe there was a light weight window
program out there, that can decrypt that. if anyone
knows of a better way to do this then what I am trying
please let me know.

Thanks
Sonny

UPDATE
I got the email problem fixed at least by using PGP, don't
know why I never did this before.

Last edited by sonny; 12-27-2012 at 09:58 PM..
sonny is offline   Reply With Quote
Old 12-27-2012, 09:59 PM   PM User | #5
Redcoder
Regular Coder

 
Redcoder's Avatar
 
Join Date: May 2012
Location: /dev/couch
Posts: 309
Thanks: 2
Thanked 46 Times in 45 Posts
Redcoder has a little shameless behaviour in the past
PHP encrypt uses MCrypt so this might be able to help you.

http://heanet.dl.sourceforge.net/pro....6.7-win32.zip
__________________
For professional Hosting and Web design.....


NetEssentials.co.uk
Redcoder is offline   Reply With Quote
Old 12-27-2012, 10:35 PM   PM User | #6
sonny
Regular Coder

 
sonny's Avatar
 
Join Date: Apr 2008
Location: United States
Posts: 567
Thanks: 88
Thanked 0 Times in 0 Posts
sonny can only hope to improve
Quote:
Originally Posted by Redcoder View Post
PHP encrypt uses MCrypt so this might be able to help you.

http://heanet.dl.sourceforge.net/pro....6.7-win32.zip
How does that work? when I run it just closes itself, how do I select a file?

Thanks
Sonny
sonny is offline   Reply With Quote
Old 12-27-2012, 11:00 PM   PM User | #7
Redcoder
Regular Coder

 
Redcoder's Avatar
 
Join Date: May 2012
Location: /dev/couch
Posts: 309
Thanks: 2
Thanked 46 Times in 45 Posts
Redcoder has a little shameless behaviour in the past
Ah. Sorry. I have no idea how MCrypt is used on Windows. Use Linux or Cygwin which will help ou achieve almost similar Unix functionality. Sorry I couldn't help.
__________________
For professional Hosting and Web design.....


NetEssentials.co.uk
Redcoder is offline   Reply With Quote
Old 12-28-2012, 12:30 AM   PM User | #8
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,604
Thanks: 2
Thanked 399 Times in 392 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
Here is an example of how to handle encryption/decryption with PHP and C#. You'll have to create an application to implement the C# code on windows, or perhaps find one that someone else has already created.
Inigoesdr is offline   Reply With Quote
Old 12-28-2012, 01:55 AM   PM User | #9
sonny
Regular Coder

 
sonny's Avatar
 
Join Date: Apr 2008
Location: United States
Posts: 567
Thanks: 88
Thanked 0 Times in 0 Posts
sonny can only hope to improve
Quote:
Originally Posted by Inigoesdr View Post
Here is an example of how to handle encryption/decryption with PHP and C#. You'll have to create an application to implement the C# code on windows, or perhaps find one that someone else has already created.
sounds like a lot just too decrypt something, Guess I will have to install Apache with php and
decrypt that way, in the meantime I'll just have to send the files with GPG.

thought there would be a small window based executable already out there to decrypt php's
mycrypt, really surprised encrypting visitor sensitive data is not all that popular I guess.

Ok thanks for the input guys
sonny is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:12 PM.


Advertisement
Log in to turn off these ads.