We have a client who was previously receiving Excel statements encrypted by another application using “RC4,
Microsoft Enhanced Cryptographic Provider 1.0 128-bit encryption.” They have an automated process which decrypts the file expecting this algorithm.
We are now using Apose.Cells to encrypt the files using the following call:
Below is a code to open any password protected file. I have tested it, it works with xls files but not xlsx files. It seems encryption is not supported for xlsx files. I have attached the sample xls file and the you can see the output below. The password is 007.
Please read my post again carefully. The article mentions only
RC4,Microsoft Strong Cryptographic Provider
What I am interested in is
RC4, Microsoft Enhanced Cryptographic Provider
Can you please tell me if this is supported, and if so, how to select it? I see that EncryptionType class seems to only support Strong , as mentioned in the article.
I don’t believe you need a sample file. Please take any xls file (93-2007) and try and encrypt it using RC4 Microsoft Enhanced Cryptographic Provider algorithm. It this is possible, please provide me with the API to use.
Yes, it is supported as I found, Aspose.Cells for Java was able to open it. I am attaching the source xls file which ran successful with the above code.
I am not trying to decrypt/open the file using Aspose.
I am trying to encrypt it using it RC4, Microsoft Enhanced Cryptographic Provider 1.0 128-bit.
Can you please show me how to do the following using Aspose API:
1. Take a sample unprotected XLS like your source1.xls 2. Show me the Aspose API used to encrypt this file using: RC4, Microsoft Enhanced Cryptographic Provider 1.0 128-bit. 3. Check in Excel that in fact the cryptographic provider used to encrypt the file is RC4, Microsoft Enhanced Cryptographic Provider 1.0 128-bit.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.