title: Converting string to byte array
body: <p>I'm using <strong>RSA</strong> encryption for converting simpletext to encrypted form.</p>
  
  <p><code>my plain text is : hello</code></p>
  
  <p><code>encrypted text : [B@d7eed7</code></p>
  
  <p>Now, how to convert encrypted text into simple plain text
  i'm using following code</p>
  
  <pre><code>KeyPairGenerator keygenerator = KeyPairGenerator.getInstance("RSA");
  SecureRandom random = SecureRandom.getInstance("SHA1PRNG", "SUN");
  keygenerator.initialize(1024, random);
  
  KeyPair keypair = keygenerator.generateKeyPair();
  PrivateKey privateKey = keypair.getPrivate();
  PublicKey publicKey = keypair.getPublic();
  Cipher cipher = Cipher.getInstance("RSA");
  
  String arrayStr = "[b@d7eed7";
  byte ciphertext = arrayStr.getBytes();
  cipher.init(Cipher.DECRYPT_MODE, privateKey);
  byte[] cleartext1 = cipher.doFinal(ciphertext);
  System.out.println("the decrypted cleartext is: " + new String(cleartext1));
  </code></pre>
  
  <p>i'm getting <strong>javax.crypto.BadPaddingException: Data must start with zero</strong></p>
  
  <p>need help !!</p>