Hello all,

Probably it was already discussed here, but I did not find any suitable
solutions in list archive.

I work on implementation of perl library, provided by OpenSRS on JAVA

I have some questions about Java Crypto API, probably someone already work
with that and can help.

I use JCE 1.2.2 and I generate DES Cipher and aferwards use
CipherInputStream and CIpherOututStream to write and read encrypted data
to the network.

Problem is that to instantinate Cipher object I need java.security.Key
class for DES algorithm. How can I get instance of java.security.Key from
private key, provided to me by OpenSRS. Provided key is a text string.
Does anyone already work with this API and can advise something?
Probably it is a stupid question, but I cant pass user authentication to
OpenSRS server without this.

Sincerely,
Sergey Lukichev
[EMAIL PROTECTED]


Reply via email to