Name

NullCipher

Synopsis

This trivial subclass of Cipher implements an identity cipher that does not transform plain text in any way. Unlike Cipher objects returned by Cipher.getInstance( ), a NullCipher must be created with the NullCipher( ) constructor.

javax.crypto.NullCipher

Figure 17-8. javax.crypto.NullCipher

public class NullCipher extends Cipher {
// Public Constructors
     public NullCipher( );  
}

Get Java in a Nutshell, 5th 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.