New topic: Encryption - a generic solution !!
<http://forums.realsoftware.com/viewtopic.php?t=45768> Page 1 of 1 [ 14 posts ] Previous topic | Next topic Author Message amitavak Post subject: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 3:29 am Joined: Mon Jan 02, 2012 1:51 am Posts: 331 Location: India Hello guys, There is a existing .Net web application. Now I am making the desktop version of it. There is a option in the desktop application to update the user data. Then the application calls a web service and gets the new files from web server to a local directory. All the files are encrypted. Now from the desktop application, I need to decrypt those files. But the files are encrypted using some third party component of .Net. But that encryption technique can be changed. So I was told to write a encrypt/decrypt method without using any third party component or something specific to realbasic so that these can be written in .Net also. Now I am thinking to use a third party component for some standard encrytion technique(say AES) and same technique for .Net also. and try if I get success. What do you guys think about it? Any suggestions, ideas are most welcomed. _________________ Amitava Karan Real Studio 2012 Release 1 Windows 7 (32 bit) Mac OS X Version 10.7 Top Akiland Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 3:42 am Joined: Tue Jan 04, 2011 3:02 am Posts: 983 Location: Jönköping, Sweden Try OpenSSL. I use it in Web apps a lot to encrypt/decrypt AES-256 strings _________________ Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8 Using Subversion on a Synology DS409+ REAL.Studio Web Edition 2011r3 Top MonkeybreadSoftware Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 4:00 am Joined: Wed May 10, 2006 2:42 pm Posts: 2764 Location: Germany We have a couple of encryption related functions in our MBS Plugins. Like AES and Blowfish. Greetings Christian _________________ See you in Orlando, Florida for Real World 2012 More details and registration here: http://www.realsoftware.com/community/realworld.php Top amitavak Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 5:03 am Joined: Mon Jan 02, 2012 1:51 am Posts: 331 Location: India MonkeybreadSoftware wrote:We have a couple of encryption related functions in our MBS Plugins. Like AES and Blowfish. Yes, I know. Actually I use it another project. I have the license of util plugin. But I can't use it to decrypt a file which is encrypted using a different component. What I am looking for a component(may be third party) in realbasic and a component in .Net with same technique. So that a file file encrypted in .Net application can be decrypted in Realbasic app or vice versa. _________________ Amitava Karan Real Studio 2012 Release 1 Windows 7 (32 bit) Mac OS X Version 10.7 Top Akiland Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 5:07 am Joined: Tue Jan 04, 2011 3:02 am Posts: 983 Location: Jönköping, Sweden amitavak wrote:What I am looking for a component(may be third party) in realbasic and a component in .Net with same technique. So that a file file encrypted in .Net application can be decrypted in Realbasic app or vice versa. As I said a bit up you can call OpenSSL in a shell. It will require OpenSSL to be installed but it will work in both RB and .net. If a .net app can call a shell application _________________ Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.8 Using Subversion on a Synology DS409+ REAL.Studio Web Edition 2011r3 Top amitavak Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 5:15 am Joined: Mon Jan 02, 2012 1:51 am Posts: 331 Location: India I never use it. So I don't know much about it. Akiland wrote:It will require OpenSSL to be installed. But a user may not have the OpenSSL installed. Then ? _________________ Amitava Karan Real Studio 2012 Release 1 Windows 7 (32 bit) Mac OS X Version 10.7 Top MonkeybreadSoftware Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 5:20 am Joined: Wed May 10, 2006 2:42 pm Posts: 2764 Location: Germany Hey, either you depend on openSSL installation, or you carry your own lib with a plugin or you use declares for a lib installed by the OS. it's your choice. Greetings Christian _________________ See you in Orlando, Florida for Real World 2012 More details and registration here: http://www.realsoftware.com/community/realworld.php Top amitavak Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 5:29 am Joined: Mon Jan 02, 2012 1:51 am Posts: 331 Location: India MonkeybreadSoftware wrote:Hey, either you depend on openSSL installation, or you carry your own lib with a plugin or you use declares for a lib installed by the OS. it's your choice. I could not get you. Do you have plugin for openSSL? _________________ Amitava Karan Real Studio 2012 Release 1 Windows 7 (32 bit) Mac OS X Version 10.7 Top MonkeybreadSoftware Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 5:32 am Joined: Wed May 10, 2006 2:42 pm Posts: 2764 Location: Germany Well, OpenSSL is a huge library. Our plugins have classes and functions for various things which are also in OpenSSL. What do you need exactly? We have a class for AES: http://www.monkeybreadsoftware.net/class-aesmbs.shtml Greetings Christian _________________ See you in Orlando, Florida for Real World 2012 More details and registration here: http://www.realsoftware.com/community/realworld.php Top shaosean Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 5:33 am Joined: Mon Aug 15, 2011 10:25 pm Posts: 206 He said he has one for AES and one for Blowfish.. So long as the two sides use the same encryption, how they do it does not matter (OpenSSL, plugin, etc) _________________ Real Studio 2012r1.1 | MacBook Pro i5, 10.6.8 | Windows 7 Top amitavak Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 5:45 am Joined: Mon Jan 02, 2012 1:51 am Posts: 331 Location: India shaosean wrote:He said he has one for AES and one for Blowfish.. So long as the two sides use the same encryption, how they do it does not matter (OpenSSL, plugin, etc) Exactly this is what I am trying to say. Just I don't know the similar component in .Net to some Realbasic Component(may be MBS one). I know little ablout .Net. I will be very greatfull if some can point me to that. _________________ Amitava Karan Real Studio 2012 Release 1 Windows 7 (32 bit) Mac OS X Version 10.7 Top MonkeybreadSoftware Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 6:06 am Joined: Wed May 10, 2006 2:42 pm Posts: 2764 Location: Germany Looks like .net also has an AES class. Greetings Christian _________________ See you in Orlando, Florida for Real World 2012 More details and registration here: http://www.realsoftware.com/community/realworld.php Top amitavak Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 7:50 am Joined: Mon Jan 02, 2012 1:51 am Posts: 331 Location: India MonkeybreadSoftware wrote:Looks like .net also has an AES class. I have tried with the the Aes class in .Net. http://msdn.microsoft.com/en-us/library/system.security.cryptography.aescryptoserviceprovider.aspx But the encrypted string return by that method and one returned by the MBS plugin is not same. _________________ Amitava Karan Real Studio 2012 Release 1 Windows 7 (32 bit) Mac OS X Version 10.7 Top MonkeybreadSoftware Post subject: Re: Encryption - a generic solution !!Posted: Wed Oct 31, 2012 8:15 am Joined: Wed May 10, 2006 2:42 pm Posts: 2764 Location: Germany Probably you are nor using same encryption method, padding or some other parameter. You can email me a test project and your output from .NET Greetings Christian _________________ See you in Orlando, Florida for Real World 2012 More details and registration here: http://www.realsoftware.com/community/realworld.php Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 14 posts ]
-- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
