aspose file tools*
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: 217
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: 1067
    
  10

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

Joined: Feb 03, 2012
Posts: 217
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