使用.NET创建自己的编码格式 [英] Creating your own encoding format with .NET

查看:54
本文介绍了使用.NET创建自己的编码格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的社区成员。

我想知道如何在Visual Basic中编码文件,以便无法使用记事本或Word等文字处理程序打开它。我想为一个文件创建一个自定义结构,它将作为我的应用程序的数据库。它将使用我自己编制的特殊加密算法进行加密。 (http://www.jcplaboratory.net46.net/projects/ctes-crypt/)但我想更改文件编码结构,以便只有我的应用程序才能读取它。

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. (http://www.jcplaboratory.net46.net/projects/ctes-crypt/) But I want to change the file encoding a structures as well so that only my application will be taunt to read it.

推荐答案

首先,除非你持有数学和密码学博士学位,否则创建自己的加密方案就像它一样不安全。



其次,您无法阻止其他应用程序打开您的数据文件。无论您做什么,它们仍然可以读取文件。这是扰乱内容的问题,因此人眼无法识别。您不需要编码。你需要加密。
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.


这篇关于使用.NET创建自己的编码格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆