Hi Team, We can create an .csv file using std::ofstream() function. But my project requirement demands to create a .csv file with password protected. Ofstream has open() function to create a file but how to create a file with password protected? Please help me on this. Regards, Rajesh D Confidential - Company Proprietary Please be advised that this email may contain confidential information. If you are not the intended recipient, please notify us by email by replying to the sender and delete this message. The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.
On 8/30/2022 2:24 PM, Daggumati, Rajesh via Boost wrote:
Hi Team, We can create an .csv file using std::ofstream() function.
But my project requirement demands to create a .csv file with password protected.
Ofstream has open() function to create a file but how to create a file with password protected?
Please help me on this.
Regards, Rajesh D
You need to use a library that does password key derivation, secret key encryption and preferably a message authentication code to verify integrity. For a C++ library with lots of options, try crypto++:
Crypto++ has lots of older algorithms that should no longer be used in modern systems. I recommend Argon2 for password key derivation, and ChaCha20 with Poly1305 for secret key encryption. Kind regards, Philip Bennefall
Don't encourage him. On Tue, Aug 30, 2022, 21:31 Daggumati, Rajesh via Boost < boost@lists.boost.org> wrote:
Hi Team, We can create an .csv file using std::ofstream() function.
But my project requirement demands to create a .csv file with password protected.
Ofstream has open() function to create a file but how to create a file with password protected?
Please help me on this.
Regards, Rajesh D
Confidential - Company Proprietary
Please be advised that this email may contain confidential information. If you are not the intended recipient, please notify us by email by replying to the sender and delete this message. The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
On 30/08/2022 13:24, Daggumati, Rajesh via Boost wrote:
Hi Team, We can create an .csv file using std::ofstream() function.
But my project requirement demands to create a .csv file with password protected.
Ofstream has open() function to create a file but how to create a file with password protected?
.csv files are plain text files except that the data is separated with a comma (thus called csv files - comma separated files). Data in Text files cannot be password protected but you can protect the entire file so that nobody can open it without a password. I am not sure if this is what you are asking about. -- With over 2.3 billion devices now running Windows 10/11, customer satisfaction is higher than any previous version of windows.
Yeah I want that entire file can be opened after entering the correct password.
Do we have any function to support this?
Regards,
Rajesh D
Get Outlook for Androidhttps://aka.ms/AAb9ysg
________________________________
From: Boost
Hi Team, We can create an .csv file using std::ofstream() function.
But my project requirement demands to create a .csv file with password protected.
Ofstream has open() function to create a file but how to create a file with password protected?
.csv files are plain text files except that the data is separated with a comma (thus called csv files - comma separated files). Data in Text files cannot be password protected but you can protect the entire file so that nobody can open it without a password. I am not sure if this is what you are asking about. -- With over 2.3 billion devices now running Windows 10/11, customer satisfaction is higher than any previous version of windows. _______________________________________________ Unsubscribe & other changes: https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.boost.org_mailman_listinfo.cgi_boost&d=DwICAg&c=9mghv0deYPYDGP-W745IEdQLV1kHpn4XJRvR6xMRXtA&r=LVCtBgXITCfVRluBdq4QJyS_9zJJWSysqf6n5HlkvvA&m=1jgtJWld9E_Io3yKWcah41euIcqqq_nuCdSSfsUXP7d5PAWGIF5iRyllVr91mcM1&s=K1PjoFl47aJ3KwlsKRjltWR_80CeUspGhvvkF7RmXgg&e= Please be advised that this email may contain confidential information. If you are not the intended recipient, please notify us by email by replying to the sender and delete this message. The sender disclaims that the content of this email constitutes an offer to enter into, or the acceptance of, any agreement; provided that the foregoing does not invalidate the binding effect of any digital or other electronic reproduction of a manual signature that is included in any attachment. Confidential - Company Proprietary
participants (4)
-
Daggumati, Rajesh
-
Klemens Morgenstern
-
Philip Bennefall
-
π Good Guy π