[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 293
  • Last Modified:

javax.crypto.Cipher, mode = NONE ?

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.
0
bobwood2000
Asked:
bobwood2000
  • 2
1 Solution
 
gnoonCommented:
I think without implementing your own provider, you cannot use your own mode with AES algorithm.
0
 
gnoonCommented:
Of course, you also need to implement your own AESCipher class.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now