com.googlecode.gwt.crypto.client.StreamCipher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-crypto Show documentation
Show all versions of gwt-crypto Show documentation
A partial port of the Bouncycastle J2ME crypto library with
parts taken from GWTx.
The newest version!
package com.googlecode.gwt.crypto.client;
import com.googlecode.gwt.crypto.bouncycastle.CipherParameters;
import com.googlecode.gwt.crypto.bouncycastle.DataLengthException;
import com.googlecode.gwt.crypto.bouncycastle.InvalidCipherTextException;
public interface StreamCipher {
public String encrypt(String plainText) throws DataLengthException,
IllegalStateException, InvalidCipherTextException;
public String decrypt(String cipherText) throws DataLengthException,
IllegalStateException, InvalidCipherTextException;
public void setParameters(CipherParameters params)
throws IllegalArgumentException;
public CipherParameters getParameters();
}