Skip to content

Instantly share code, notes, and snippets.

@jvlucic
jvlucic / PHPCAST6Engine
Created July 9, 2015 13:42
PHP implements a variations of the Cast256 Algorithm, using this class, with BouncyCastle allows you to encrypt and decrypt the same way php does.
package crypto;
import org.bouncycastle.crypto.engines.CAST5Engine;
/**
* A class that provides CAST6 key encryption operations,
* such as encoding data and generating keys.
*
* All the algorithms herein are from the Internet RFC