🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #621

Re: XOR

#621
From: C.Roum
Date: Tue, 27 May 2003 07:53
17 lines
1611 bytes
Hi,

I'm trying to decrypt sth like:
 for (int Index = 1; Index <= EncryptedBytes.length; Index++) {
       myDecryptedBytes[Index - 1] =  ((myEncryptedBytes[Index - 1] & 0xff)

but i get "Error #: 355 : possible loss of precision: int, required: byte"
error.

actually myKey values are greater than 128 and I couldnt define myKey values
as byte[].
java's byte is -128 to +128. Delphi's byte is 0..256. I think problem arises
from that point.
How can i decrypt a String which is UTF8 encoded by using XOR with a key
values which are greater than 128? Then finally decrypted array should be
converted to String.
Is it possible?
Technical Details
Message-ID: <3ed31980@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3ed2640b@newsgroups.borland.com> <3ed2c76b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,21822203ad77fe3c
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-05-27 01:11:16 PST
From: "C.Roum" <croum@edumail.com>
Newsgroups: borland.public.jbuilder.java.api
References: <3ed2640b@newsgroups.borland.com> <3ed2c76b$1@newsgroups.borland.com>
Subject: Re: XOR
Date: Tue, 27 May 2003 10:53:25 +0300
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 212.133.145.215
Message-ID: <3ed31980@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054022016 212.133.145.215 (27 May 2003 00:53:36 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail