Page 1 of 1

Can I use a keyfile with the Java API?

Posted: Thu Oct 15, 2015 1:30 pm
by multibobwork
Hi,

I would like to use a generated keyfile (keygen) with the Java API to encrypt and decrypt is this possible? If so can you send an example.

Also is there a way to generate the keyfile with the Java API?

Regards,

- Bob

Re: Can I use a keyfile with the Java API?

Posted: Thu Oct 15, 2015 4:01 pm
by paulej
The Java code doesn't have a routine to generate key files, but it should be easy to do. Just write out a proper UTF-16LE file with random characters. Don't forget to insert a BOM as the first two octets of the file.

Re: Can I use a keyfile with the Java API?

Posted: Thu Oct 15, 2015 4:07 pm
by multibobwork
Hi,

Thanks for the reply but can the Java API use a keyfile that I generated with the Linux command line?

Regards,

- Bob

Re: Can I use a keyfile with the Java API?

Posted: Fri Oct 16, 2015 12:12 am
by paulej
No, you'd have to write that logic yourself.