Common encryption method in PHP and C#
-
Hi I am trying to transfer a data securely over HTTP and my page that I am recieving the secure data from is written in PHP. I need a secure encryption method to encrypt the data that I am sending. It better needs a key to encrypt and decrypt and it should be secure (Rijandel would be nice :) ) Thanks.
HTTPS would be the best way. However, Google suggests that PHP does support various crypto fucntions so pick one that is also available in .NET.
Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
-
HTTPS would be the best way. However, Google suggests that PHP does support various crypto fucntions so pick one that is also available in .NET.
Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
Thank you for your answer. I have searched a little about it on Google and I have read some articles that I've came across. But none of them give me enough information about how secure is that encryption method is and wheather it exists both on C# and PHP. I need an encryption method which decryptable only with a secret key and exists on both C# and PHP.
-
Thank you for your answer. I have searched a little about it on Google and I have read some articles that I've came across. But none of them give me enough information about how secure is that encryption method is and wheather it exists both on C# and PHP. I need an encryption method which decryptable only with a secret key and exists on both C# and PHP.
http://www.example-code.com/csharp/crypt2_blowfish_matchPhp.asp[^]
Vasudevan Deepak Kumar Personal Homepage
Tech Gossips
The woods are lovely, dark and deep, But I have promises to keep, And miles to go before I sleep, And miles to go before I sleep! -
Thank you for your answer. I have searched a little about it on Google and I have read some articles that I've came across. But none of them give me enough information about how secure is that encryption method is and wheather it exists both on C# and PHP. I need an encryption method which decryptable only with a secret key and exists on both C# and PHP.
If you don't have a solid enough foundation in encryption to know the answer you should not be writing code that does encryption, from a security standpoint. It is very easy to make mistakes that can compromise the data. If it is truly important information hire a specialist to come in for one day to do it for you or your company. If the data is not that important just do whatever is simplest and don't worry about it. As for checking whether is exists in both languages. The documentation for both languages provide that answer.
Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
-
If you don't have a solid enough foundation in encryption to know the answer you should not be writing code that does encryption, from a security standpoint. It is very easy to make mistakes that can compromise the data. If it is truly important information hire a specialist to come in for one day to do it for you or your company. If the data is not that important just do whatever is simplest and don't worry about it. As for checking whether is exists in both languages. The documentation for both languages provide that answer.
Need custom software developed? I do C# development and consulting all over the United States. A man said to the universe: "Sir I exist!" "However," replied the universe, "The fact has not created in me A sense of obligation." --Stephen Crane
Thank you for all your answers. As you can see I don't have a solid foundation in encryption, the data I am trying to encrypt is not so vital and sensitive. But it should be encrypted. I can even use Base64 but it would be a little bit too easy I guess. :)
-
Thank you for all your answers. As you can see I don't have a solid foundation in encryption, the data I am trying to encrypt is not so vital and sensitive. But it should be encrypted. I can even use Base64 but it would be a little bit too easy I guess. :)
Base64 is not encryption at all. It is an encoding to make sure 8-bit data can safely traverse a 7-bit path.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008 -
Hi I am trying to transfer a data securely over HTTP and my page that I am recieving the secure data from is written in PHP. I need a secure encryption method to encrypt the data that I am sending. It better needs a key to encrypt and decrypt and it should be secure (Rijandel would be nice :) ) Thanks.
Symmetric (Rijndael)[^] would indeed be nice
-
Base64 is not encryption at all. It is an encoding to make sure 8-bit data can safely traverse a 7-bit path.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008True
-
Symmetric (Rijndael)[^] would indeed be nice
Thank you, but what about PHP?
-
Thank you, but what about PHP?
Use this PHP package[^]