Git Product home page Git Product logo

l2crypt's Introduction

L2crypt

GitHub

An open source library in Java for encryption/decryption Lineage 2 files.

Supported headers: 111, 120, 121, 211, 212, 41x, l2encdec(41x), lamecrypt(811, 820, 821, 911, 912, 61x)

Usage

File cryptedFile = ...
File destFile = ...

try(InputStream is = L2Crypt.getInputStream(cryptedFile);
	OutputStream os = new FileOutputStream(destFile)){
	byte[] buffer = new byte[0x1000];
	int r;
	while ((r = is.read(buffer)) != -1){
		os.write(buffer, 0, r);
	}
}

Maven

<repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
</repository>

<dependency>
    <groupId>com.github.acmi</groupId>
    <artifactId>l2crypt</artifactId>
    <version>1.3.3</version>
</dependency>

Gradle

repositories {
    // ...
    maven { url 'https://jitpack.io' }
}

dependencies {
    compile group:'com.github.acmi', name:'l2crypt', version: '1.3.3'
}

Credits

  • The Legion of the Bouncy Castle for Blowfish Engine that is part of the BouncyCastle JCE
  • DStuff for l2encdec
  • Hint for 41x cipher

License

L2crypt is open source licensed under the MIT License

l2crypt's People

Contributors

acmi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

l2crypt's Issues

Непонятные 20 байт в конце.

Если сравнивать распаковку L2Crypt и l2Decrypt, например на env.int из папки System, то L2Crypt дописывает какие-то 20 байт в конец распакованного файла.

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.