Click here to Skip to main content
15,744,384 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear community members.
I would like to know how do I encode a file in Visual Basic so that It can't be opened with a word processor such as Notepad or Word. I want to create a custom structure for a file which will act as a database for my Application. It will be encrypted using a special encryption algorithm concocted by myself. ( But I want to change the file encoding a structures as well so that only my application will be taunt to read it.

1 solution

First, creating your own encryption scheme is about as insecure as it gets unless you're holding a PhD in math and cryptology.

Second, you can't prevent other applications from opening your data file at all.They will still be able to read the file no matter what you do. It's a matter of scrambling the content so it isn't recognizable by human eyes. You don't need an encoding for that. You need encryption.
Share this answer

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