编码和解码文本。 C#中的文件 [英] Encoding and decoding a text. file in C#

查看:72
本文介绍了编码和解码文本。 C#中的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我是C#的新手,我需要你的帮助。



我需要对文本进行编码和解码。 C#中的文件。如果你问更多的信息。

这个文件是通过不同的文本框输入创建的。因此我想首先通过我的程序在一些员工的计算机中对其进行编码,然后会计客户端可以对此进行解码代码通过我的程序。可以使用以下格式进行编码和解码:偏移+月,例如:200 + 03



这是一个紧急情况,请帮我说说。



Tnx。

Hi everyone,I'm new in C#,I need your help.

I need to encode and decode a Text. file in C#. And if you ask more info.,
this file is created through a different Textbox input.Therefore I want to first encode it through my program in some employees' Computers,and then the accountant client can decode this code through our my program.Is it possible to use the following format for encoding and decoding :offset+Month ,as an example:200+03

It's an urgent case ,please help me with your words.

Tnx.

推荐答案

我完全不知道你是什么意味着



是否可以使用以下格式进行编码和解码:offset + Month,例如:200 + 03



但为什么不使用.NET内置加密?它非常易于使用且安全。 加密服务 [ ^ ]
I have absolutely no idea what you mean by

"Is it possible to use the following format for encoding and decoding :offset+Month ,as an example:200+03"

But why not use the .NET built in encryption? It's pretty easy to use, and secure. Cryptographic Services[^]


编码是什么意思;没有更多的信息,很难猜出你想要实现的目标。如果您正在谈论加密和解密,那么您可以查看这里 [ ^ ]。
What do you mean by "encoding"; without a lot more information it's difficult to guess what you are trying to achieve. If you are talking about encryption and decryption then you can look here[^].


我发现了一篇关于这个主题的有用文章,只是快速浏览一下,可能对你有用:http://webgeek.elletis.com/how-to-enter-html- code-into-database-from-a-textbox / [ ^ ]
I found a useful article written on this topic, just have a quick look, might be useful for you: http://webgeek.elletis.com/how-to-enter-html-code-into-database-from-a-textbox/[^]


这篇关于编码和解码文本。 C#中的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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