Skip to content
/ L2crypt Public

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

License

Notifications You must be signed in to change notification settings

acmi/L2crypt

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Languages