javax.crypto.Cipher, mode = NONE ?

Posted on 2004-11-03
Last Modified: 2010-03-31
If I call Cipher.getInstance("AES/NONE/PKCS5Padding"), then the returned Cipher object will have no mode. What is the use of creating a Cipher that has NONE  as its mode? Might specifying "NONE" make it possible for me to have the Cipher use my implementation of a mode, rather than using one of the modes that included with Java? If so, how can I instruct the Cipher object to use an AES mode I have implemented?

Thank you very much.
Question by:bobwood2000
    LVL 16

    Accepted Solution

    I think without implementing your own provider, you cannot use your own mode with AES algorithm.
    LVL 16

    Expert Comment

    Of course, you also need to implement your own AESCipher class.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    If you have upgraded to Java2 update 10 on a Microsoft Windows client, you may have discovered that your Java application does not work as it did before.  For example, the colors of your Java2D graphic may be all wrong for no apparent reason. Aft…
    Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
    Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
    This video teaches viewers about errors in exception handling.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now