Giter Site home page Giter Site logo

codebyteme / rc4test Goto Github PK

View Code? Open in Web Editor NEW

This project forked from smartxiaoming001/rc4test

0.0 1.0 0.0 19.3 MB

这是一个可以加解密文件的demo,包括视屏,音频,文本,图片等所有文件的加解密,与DES相比,流密码操作简单,按位异或,并可以根据口令,生成复杂的秘钥进行加密 ~~~

C 0.01% C++ 0.01% Java 99.99%

rc4test's Introduction

TextEncryption

这是一个可以加解密文件的demo,包括视屏,音频,文本,图片等所有文件的加解密
与DES相比,流密码操作简单,按位异或,并可以根据简单的口令,生成复杂的秘钥进行加密。

初始测试图片如下:

image

加密后的图片如下,文件损坏:

image

重新解密后的图片如下:

image

本代码中有两种加密的方式:
第一种是DES加密(com.tman.stream下),由于进行多次轮换和填充,加密的复杂度偏高,加密起来稍微耗时一些
第二种是本人按照自己的思路写的(com.other.stream下),在拷贝文件时每一位上的字节对应相应的流密码按位异或,解密时也一样

总结:

由于本人还是在校的学生,如果走过路过的同仁觉得对你有帮助,麻烦帮小弟点个赞啦😊😊😊

rc4test's People

Contributors

smartxiaoming001 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.