---
title: "VB利用异或运算加密文件"
author: "hellostory"
date: "2011-05-26T11:46:00Z"
tags: []
slug: "vb"
draft: false
lastmod: "2012-02-22T11:13:18Z"
id: 1416483
url: "https://hellostory.iteye.com/blog/1416483"
---

说明：1、由于采用二进制读取文件的方式，因此加密时一般可以不考虑文件类型。

2、这里只进行一次异或运算，如有需要可以进行多次异或运算。

3、此加密算法速度快，当然加密强度也低 :)