Java Question: Triple-DES Decryption with a Keyfile

Hello people, To java coders out there, I need to put a triple-DES decryption algorithm into a jar file, which also uses a key file. One option is to reference it with an absolute path, however I need to find out if it's possible to put it key key file in the jar, and use a relative path to get it? Please help, -- Samuel Waithaka http://twitter.com/samwaithaka

Hi Samuel, Not so sure I get what you are trying to achieve here. Are you trying to write code for a triple-DES decryption algorithm, put the code in a .jar file and run that .jar file to decrypt while referencing the key file either using an absolute path or a relative path? On Tue, Jun 2, 2015 at 9:56 AM, Samuel Waithaka via skunkworks < skunkworks@lists.my.co.ke> wrote:
Hello people,
To java coders out there, I need to put a triple-DES decryption algorithm into a jar file, which also uses a key file. One option is to reference it with an absolute path, however I need to find out if it's possible to put it key key file in the jar, and use a relative path to get it?
Please help,
-- Samuel Waithaka http://twitter.com/samwaithaka
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

Hi Loki, I need to use the jar file as a library, in Jasper server actually. But this jar uses a key file (to decrypt); it can be put anywhere in the server's file system (the key file) and have it referenced using absolute path (in the java code that is exported into a jar file); Alternatively, how about including this key file in the jar when creating the jar file, and use relative path? Is this even possible in first place? Hope that helps. On Thu, Jun 4, 2015 at 5:33 PM, Nicholas Loki <lokimwenga@gmail.com> wrote:
Hi Samuel, Not so sure I get what you are trying to achieve here. Are you trying to write code for a triple-DES decryption algorithm, put the code in a .jar file and run that .jar file to decrypt while referencing the key file either using an absolute path or a relative path?
On Tue, Jun 2, 2015 at 9:56 AM, Samuel Waithaka via skunkworks < skunkworks@lists.my.co.ke> wrote:
Hello people,
To java coders out there, I need to put a triple-DES decryption algorithm into a jar file, which also uses a key file. One option is to reference it with an absolute path, however I need to find out if it's possible to put it key key file in the jar, and use a relative path to get it?
Please help,
-- Samuel Waithaka http://twitter.com/samwaithaka
_______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------
Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke
-- Samuel Waithaka http://twitter.com/samwaithaka
participants (2)
-
Nicholas Loki
-
Samuel Waithaka