Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
A windows application which makes use of Windows' cryptoAPI defined in <wincrypt.h> header file which has a windows specific implementation for encrypting/decrypting files and folders needs to be ported on Mac OS X such the file encrypted using this application on Windows can be decrypted on Mac and vice-versa. Any idea how this can be done?
Posted

1 solution

it can't ...

you'll have to create an abstraction layer, implemented in both OS's, which hides implementation

or buy a third party library that does the same
 
Share this answer
 
Comments
Aniruddha Loya 21-Aug-11 6:56am    
Does that mean I need to write my own implementation of encryption/decryption algorithms?
barneyman 21-Aug-11 23:31pm    
you're going to have write something on the Apple side, yes; i would assume that OSX has some available crypto APIs (please don't try to write your own), and they'll largely by the same 'shape' as the Microsoft ones
Aniruddha Loya 22-Aug-11 7:39am    
Yes, there are crypto APIs in OSX but to make it work with Windows APIs would require some digging in... sigh! Will update on progress. Thnx for ur input.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900