Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8210838

Override javax.crypto.Cipher.toString()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • None
    • security-libs
    • None

       javax.crypto.Cipher.toString() currently doesn't print friendly information. Perhaps, it can be improved to include algorithm, mode and padding value data

      > jshell> import javax.crypto.*;
      >
      > jshell> Cipher cipher = Cipher.getInstance("AES");
      > cipher ==> javax.crypto.Cipher@5606c0b
      >
      > jshell> System.out.println(cipher);
      > javax.crypto.Cipher@5606c0b

            coffeys Sean Coffey
            coffeys Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: