java.lang.StringIndexOutOfBoundsException when loading the public key file (Java)

24 views
Skip to first unread message

Antonio Rigon

unread,
Nov 12, 2019, 11:29:00 PM11/12/19
to DidiSoft Forum
Hi - I'm a new user and getting this exception when encrypting a file. The public key is stored in a file on the local hard drive.

java.lang.StringIndexOutOfBoundsException: String index out of range: 1819
    at java.lang.AbstractStringBuilder.substring(AbstractStringBuilder.java:906)
    at java.lang.StringBuffer.substring(StringBuffer.java:482)
    at com.didisoft.pgp.bc.BaseLib.cleanGnuPGBackupKeys(Unknown Source)
    at com.didisoft.pgp.bc.BaseLib.createPGPPublicKeyRingCollection(Unknown Source)
    at com.didisoft.pgp.PGPLib.readPublicKey(Unknown Source)
    at com.didisoft.pgp.PGPLib.encryptFile(Unknown Source)
    at com.didisoft.pgp.PGPLib.encryptFile(Unknown Source)
    at com.planitas.sec.PGP.encrypt(PGP.java:43)
    at com.planitas.sec.PGPApp.main(PGPApp.java:20)

The public key file is as follows:
-----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v2.0.22 (GNU/Linux)
...
...
...
... -----END PGP PUBLIC KEY BLOCK-----

Is that correct?

Thanks
Antonio

DidiSoft Support

unread,
Nov 13, 2019, 1:20:36 AM11/13/19
to didisof...@googlegroups.com, Antonio Rigon

Hi Antonie,

Can you send me this problematic public key to support (at) didisoft.com so I can see what's wrong ?

Kind Regards
Peter Kalef
Technical Support, DidiSoft Inc
Tel/Fax: +1-256-907-7816
Web: https://www.didisoft.com
--
You received this message because you are subscribed to the Google Groups "DidiSoft Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to didisoft_foru...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/didisoft_forum/1e564ad9-844c-4f85-9d37-61a099fa0fa3%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages