Name

Class javax.crypto.NullCipher

Description

As its name implies, NullCipher is a Cipher that does nothing. You can use it to test cryptographic programs. Because NullCipher performs no transformations, its ciphertext will be exactly the same as its plaintext.

Class Definition

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

  // Constructors
  public NullCipher();
}

See Also

Cipher

Get Java Cryptography 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.