RSA - Public KEy initialization with byte[]

Hello,

I want to use two byte[]s which represent the n and the e of a given Public Key to initialize a Cipher for the RSA Algorithm. Does anybody have a good introduction on initializing RSA Public Keys. Where do I find Code Samples on this topic. At the moment I am using the Cryptix Provider but to me it doesen't mater which Provider I use

Thanks in advance

... Chris

[411 byte] By [Soulman1977] at [2007-9-26 2:07:03]
# 1

Try this:

<computer the modulus and exponent>

RSAPublicKeySpec pubKeySpec = new

RSAPublicKeySpec(mod, exp);

KeyFactory kf = KeyFactory.getInstance("RSA");

pubkey = kf.generatePublic(pubKeySpec);

Brian Boyter

boyter@txdirect.net

boyter at 2007-6-29 8:53:54 > top of Java-index,Security,Cryptography...