虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

您现在的位置是:虫虫下载站 > 资源下载 > 加密解密 > What Does the code DO? Sometimes we may desire to hide our file contents from others.One of the poss

What Does the code DO? Sometimes we may desire to hide our file contents from others.One of the poss

  • 资源大小:10 K
  • 上传时间: 2013-12-25
  • 上传用户:w277426078
  • 资源积分:2 下载积分
  • 标      签: Sometimes the contents desire

资 源 简 介

What Does the code DO? Sometimes we may desire to hide our file contents from others.One of the possible way is encrypting these files.Here a simple encryption technique is used(In VB - The same technique can be implemented in "c" also.) Program flow Explained * Open the File to be encrypted for Binary Access Read(Say Source File) * Open a temparory file where encrypted data is stored for Binary Access Write(Say Destination File) * Loop through the Source File Byte by Byte * For each byte read from the file, Complement the data. (Using Not operator (in C we have to use "~" operator) * Write Complemented Data to Destination File * Delete the Source File * Rename Destination file as Source File(Now Encryption is over)

相 关 资 源

您 可 能 感 兴 趣 的