Name

Class javax.crypto.NullCipher

Synopsis

As its name implies, null cipher is a cipher that does nothing. You can use it to test cryptographic programs. Since a null cipher performs no transformations, its ciphertext will be exactly the same as its plaintext. Note that it is not an engine; you simply instantiate it directly.

Class Definition

public class javax.crypto.NullCipher
	extends javax.crypto.Cipher {

	// Constructors
	public NullCipher(  );
}

See also

Cipher

Get Java Security, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.