my dog learned polymorphism*
The moose likes Java in General and the fly likes Using Cipher on 2 strings in Succession Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Using Cipher on 2 strings in Succession" Watch "Using Cipher on 2 strings in Succession" New topic
Author

Using Cipher on 2 strings in Succession

Dennis Putnam
Ranch Hand

Joined: Feb 03, 2012
Posts: 210
Can doFinal be invoked on 2 separate strings after a single call to init? In other words is this sequence valid?
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1035
    
  10

Yes - as long as no exception is thrown.
Dennis Putnam
Ranch Hand

Joined: Feb 03, 2012
Posts: 210
Thanks. It seemed to work but I just wanted to make sure.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Cipher on 2 strings in Succession
 
Similar Threads
javax.crypto.IllegalBlockSizeException: When Decoding an Input String
problem in serialization
Problem in using "IN" in query
Crypto needed for decrypting text
RSA Encryption / Decryption does not work