🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.java
Article #142005

Re: j2me i szyfrowanie

#142005
From: TomekC
Date: Thu, 30 Oct 2008 08:09
28 lines
2226 bytes
Adam Elente pisze:
> pz pisze:
>> Użytkownik "Adam Elente" <aelent012@ekrj1.hiweuo.net> napisał w wiadomości 
>> news:geaik2$qiu$2@nemesis.news.neostrada.pl...
>>> Znalazłem taki oto przykład
>>> http://www.java-tips.org/java-me-tips/midp/encrypting-decrypting-text-messages-with-bouncy-castle-crypt-3.html
>>> niestety nie kompiluje się znajduje błedy.
>>>
>>> Czy ktoś mógłby mi powiedzieć jak zaszyfrowac string używając
>>> BouncyCastle w j2me ?
>> To podaj te błedy.
> Proszę:
> Running in the unidentified_third_party security domain
> java.lang.NoClassDefFoundError: java/math/BigInteger: Cannot create
> class in system package

No, wygląda na to, że nie znalazł klasy java.math.BigInteger. A takiej w 
  MIDP nie ma. Zresztą podana strona mówi:

"Also note at the time of this writing that some version of Bouncy 
Castle Crypto API is not compiled for MIDP 2.0. When you tried to 
compile this example with Bouncy Castle Crypto API, you may get errors. 
(Some of the test classes use some classes not available to J2ME which 
is only available to J2SE) In that case, you may try other versions of 
the API to eliminate this problem."

-- 
Tomek małpka japko kropka info.
Technical Details
Message-ID: <gebq6o$de2$1@atlantis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.astercity.net!newsfeed.atman.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
References: <geaik2$qiu$2@nemesis.news.neostrada.pl> <geat44$b65$1@news.onet.pl> <gebmr7$a9o$3@nemesis.news.neostrada.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.astercity.net!newsfeed.atman.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
From: TomekC <tomek@adres.podaje.w.stopce.pl>
Newsgroups: pl.comp.lang.java
Subject: Re: j2me i szyfrowanie
Date: Thu, 30 Oct 2008 09:09:23 +0100
Organization: TP - http://www.tp.pl/
Lines: 28
Message-ID: <gebq6o$de2$1@atlantis.news.neostrada.pl>
References: <geaik2$qiu$2@nemesis.news.neostrada.pl> <geat44$b65$1@news.onet.pl> <gebmr7$a9o$3@nemesis.news.neostrada.pl>
NNTP-Posting-Host: fw.softnet.pl
Mime-Version: 1.0
X-Trace: atlantis.news.neostrada.pl 1225354264 13762 195.116.43.34 (30 Oct 2008 08:11:04 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Thu, 30 Oct 2008 08:11:04 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
In-Reply-To: <gebmr7$a9o$3@nemesis.news.neostrada.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit