0

Is there any way to convert DSA private key as string or byte[] in java?

user123
  • 71
  • 1
  • 2
  • 8
  • 1
    This question appears to be off-topic because it is about solving a programming problem. – otus Sep 30 '14 at 06:38
  • 3
    If you post this on stackoverflow, pretty please make sure you describe your issue in much more detail. Convert to or from? Convert to *what*? What have you tried? What does your private key look like? As it stands, the only sensible answer is "Yes". – Maarten Bodewes Sep 30 '14 at 09:02
  • IS the opposite process possible? that is, converting the byte[] to private key using Java? – user123 Oct 28 '14 at 07:17

1 Answers1

1

You call the getEncoded() method of the key.

Related:

Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820