java

i want to encode string using RSA algorithm.how can I change a string to BigInteger
[90 byte] By [naivea] at [2007-10-2 3:19:07]
# 1
new BigInteger(String val)[url= http://www.catb.org/~esr/faqs/smart-questions.html#bespecific]Use meaningful, specific subject headers[/url]
yawmarka at 2007-7-15 21:46:27 > top of Java-index,Java Essentials,New To Java...
# 2
suppose I want encrypt a line like "I am a programer".how can make this string a bigInteger
naivea at 2007-7-15 21:46:27 > top of Java-index,Java Essentials,New To Java...
# 3
> suppose I want encrypt a line like "I am a> programer".how can make this string a bigIntegerWhat number would you expect to be the equivalent of "I am a programer"?
yawmarka at 2007-7-15 21:46:27 > top of Java-index,Java Essentials,New To Java...
# 4
when I encrypt the message, message should be BigInteger.That BigInteger will be encrypted by RSA.
naivea at 2007-7-15 21:46:27 > top of Java-index,Java Essentials,New To Java...
# 5

> when I encrypt the message, message should be

> BigInteger.That BigInteger will be encrypted by RSA.

I think you have a fundamental misunderstanding of the encryption process (no problem; everyone must begin somewhere). You should start by reading the following:

[url=http://java.sun.com/developer/technicalArticles/Security/JCE/]Java 2 Cryptography Extension: Encrypting and Decrypting Data[/url]

[url=http://java.sun.com/docs/books/tutorial/security1.2/]Security in Java 2 SDK 1.2[/url]

[url=http://builder.com.com/5100-6370-1046088.html]Master the basics of Java Cryptography Extension (JCE)[/url]

[url=http://www-128.ibm.com/developerworks/java/jdk/security/142/]IBM 1.4.2 developer kit: Security information[/url]

yawmarka at 2007-7-15 21:46:27 > top of Java-index,Java Essentials,New To Java...
# 6
"I am a programmer " fro this line I can get the characters.How can I make bigIntegers from these characters
naivea at 2007-7-15 21:46:27 > top of Java-index,Java Essentials,New To Java...
# 7
I am writing RSA package for university requirement so i cann't use other packages
naivea at 2007-7-15 21:46:27 > top of Java-index,Java Essentials,New To Java...
# 8
[url= http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html#getBytes(java.lang.String)]byte[] String.getBytes(String)[/url][url= http://java.sun.com/j2se/1.4.2/docs/api/java/math/BigInteger.html#BigInteger(int,%20byte%5b%5d)]BigInteger BigInteger.BigInteger(int, byte[])[/url]
tschodta at 2007-7-15 21:46:27 > top of Java-index,Java Essentials,New To Java...
# 9
I rather think you've completely misunderstood yawmark's point.
jwentinga at 2007-7-15 21:46:27 > top of Java-index,Java Essentials,New To Java...