🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: j2me i szyfrowanie

#142008
From: Adam Elente
Date: Fri, 31 Oct 2008 06:13
39 lines
2731 bytes
pz pisze:
>>>> 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."
>>>
>> BouncyCastle zawiera te klasę.
>> Jest dołączona import
>> Po za tym nie skompilowało by się.
> 
> Po pierwsze, do czego w midlecie potrzebna ci ta linia :
> BigInteger bigInt = new BigInteger("199999");

Do niczego. Tak było w przykładzie. Jeśli znasz jakis sposób jak
zaszyfrowac string za pomoca alg. AES symetrycznie to napisz. Chetnie
się dowiem jak to zrobić. Tego przykładu sam za bardzo nie rozumiem.


> A po drugie, jak chcesz używać klas z core java to użyj obfuscatora np 

Nie chce uzywać tych klas. Chce uzyać zwyczajnie BCastle.

> Proguarda coby zmienił nazwę klasy i będzie hulać.
[...]
> zakładając, że umieściłeś proguard.jar w C:\

umieściłem w /opt

Może więc wystarczy że powiesz mi jak trzeba napisać samo szyfrowanie i
sam przyklad bedę mógł wyrzucic do kosza. Umiesz zaszyfrować dane za
pomoca BCastle?
Technical Details
Message-ID: <gee7c9$hur$1@atlantis.news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.internetia.pl!news.intelink.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> <gebq6o$de2$1@atlantis.news.neostrada.pl> <gec4ah$8on$1@atlantis.news.neostrada.pl> <gedirg$il3$1@news.onet.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.internetia.pl!news.intelink.pl!newsfeed.neostrada.pl!atlantis.news.neostrada.pl!news.neostrada.pl!not-for-mail
From: Adam Elente <aelent012@ekrj1.hiweuo.net>
Newsgroups: pl.comp.lang.java
Subject: Re: j2me i szyfrowanie
Date: Fri, 31 Oct 2008 07:13:27 +0100
Organization: TP - http://www.tp.pl/
Lines: 39
Message-ID: <gee7c9$hur$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> <gebq6o$de2$1@atlantis.news.neostrada.pl> <gec4ah$8on$1@atlantis.news.neostrada.pl> <gedirg$il3$1@news.onet.pl>
NNTP-Posting-Host: adqt174.neoplus.adsl.tpnet.pl
Mime-Version: 1.0
X-Trace: atlantis.news.neostrada.pl 1225433289 18395 79.185.153.174 (31 Oct 2008 06:08:09 GMT)
X-Complaints-To: usenet@news.neostrada.pl
NNTP-Posting-Date: Fri, 31 Oct 2008 06:08:09 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.6 (X11/20070728)
In-Reply-To: <gedirg$il3$1@news.onet.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit