Coder Social home page Coder Social logo

cpl's Introduction

#CPL

####Summary This was supposed to be a library that would decrypt files from an encrypted jar file. It was designed to be used with the Bukkit minecraft server where a plugin loader would load this library and request the classes to be decrypted. All without having to depend on exernal libraries since C++ filled with huge libraries that I only need 1 thing of and of course I have to compile the library myself which is just fucking amazing...

####Functionality

  • Contains a simple UDP client used for connecting to the server that would make sure that this, the plugin loader and the plugin to be loaded haven't been modified.
  • Shit code, because why not.
  • SHA-256 hash function. http://www.zedwood.com/article/cpp-sha256-function
  • AES encryption/decryption. I can't remember right now where I got it from, but there's a link on the file itself.

####Errors

  • For some reason it doesn't work with Java's AES/CBC/PKCS5Padding encryption.

####Compiler stuff

  • IDE used: NetBeans
  • Compiler used: TDM-MinGW64

#####x86_64 Don't forget to add "-Dx86_64" to the preprocessor options.

  • gcc compiler flags: -m64 -static-libgcc -static-libstdc++ -Wl,--add-stdcall-alias -shared
  • g++ compiler flags: -m64 -static-libgcc -static-libstdc++ -Wl,--add-stdcall-alias -shared

#####x86

  • gcc compiler flags: -static-libgcc -static-libstdc++ -Wl,--add-stdcall-alias -shared
  • g++ compiler flags: -static-libgcc -static-libstdc++ -Wl,--add-stdcall-alias -shared

####Link to the other projects: Link

cpl's People

Contributors

gkovalechyn avatar

Stargazers

Hugo Leonardo da Silva Filho avatar

Watchers

James Cloos avatar  avatar Hugo Leonardo da Silva Filho 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.