文件名称:如何对字符串进行加密解密
介绍说明--下载内容均来自于网络,请自行研究使用
如何对字符串进行加密解密 本人在操作数据库时,考虑到该数据库还有可能被其他软件打开,所以想能否有另外一种方式把数据库中数据进行加密呢,也就是说,即使别人利用其他的软件打开了该数据库,看到的也是一片乱码,根本不知道数据库进而是什么内容。出于这种情况,本人利用VB中自带 RND()函数的功能编写了如下加密解密方法。 当RND()的参数(我们称它为种子)为负值时,同一种子产生同一个随机序列,同时VB还具有强大的二进制技术功能。 这样我们可以按以下方法实现字符串内容的加密解密。-How to encode/decode the string? I consider that the database may be open by other software when I operate the database, so I want to know whether I can encode the database in other ways, that is to say, even though others can utilize other software to open the database, they will see some rubbish and do not know the content of the database at all. Under the circumstances, I write the following method for encoding/decoding utilizing the function RND ( ) which is contained by the VB. When the parameter of RND ( ) (we call it seed) is negative, the same seed produce the same random sequence, at the same time, VB have powerful function of binary technique. Then we can encode/decode the string in the following way.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
如何对字符串进行加密解密.txt