C
C#9mo ago
! 휘백

How to make custom file extension and encrypt?

I want : 1. write file that has my own file extension (example : .hwi) zip file 2. file format is zip file 3. but if user open that file with other zip program, that file crashed. but if user open that file with my program, that file will open successful I try : 1. using chat GPT - fail 2. search C# how to make custom file extension? - fail
3 Replies
Angius
Angius9mo ago
If it's a zip file, it's a zip file You can give it an .ungabunga extension, it will still be a zip file What you're looking for is a custom file format perhaps
Pobiega
Pobiega9mo ago
You could just slap your own encryption on top of zip. That would more or less give you what you want. Won't be entirely trivial thou
Diceble
Diceble9mo ago
Can I ask why you would want to make such thing?
Want results from more Discord servers?
Add your server