Search
Search titles only
By:
Search titles only
By:
Log in
Register
Search
Search titles only
By:
Search titles only
By:
Menu
Install the app
Install
Forums
New posts
All threads
Latest threads
New posts
Trending threads
Trending
Search forums
What's new
New posts
New ads
New profile posts
Latest activity
Free Ads
Latest reviews
Search ads
Members
Current visitors
New profile posts
Search profile posts
Contact us
Latest ads
AI Chat Bot for Websites
sajith.xp.pk
Updated:
55 minutes ago
Puffin Rock Characters Plush Toy Set
anil1961
Updated:
Nov 7, 2026
Toyota Vitz scp10 For Sale
Lakmal Bandara
Updated:
Nov 4, 2026
Kandy
Welcome all my all new pet shop Bark.lk
dilumrane
Updated:
Nov 2, 2026
Windows RDP Only Rs.500 a month
Blogerwiki
Updated:
Nov 1, 2026
Electronics
Vehicles
Property
Search
Reply to thread
Forums
General
ElaKiri Help
Need a big JAVA help
Get the App
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Message
<blockquote data-quote="djHiran" data-source="post: 2325227" data-attributes="member: 6429"><p>I wrote an app using VB6. </p><p></p><p>That is a very simple app which gets a text input and read it letter by letter and get the ASCII values of the text, and XOR the values with AA (hex) (or 170- binary 10101010) if not ASCII = 13 or 10, and output the processed one back as a string.</p><p></p><p>1. Get text input</p><p>2. For each letter in the text, get their ASCII values</p><p>3. For each letter, if not ASCII = 13 or 10, XOR the value with 170, if its 13 or 10, just pass the letter to the next step</p><p>4. Recombine each letter to a new string</p><p>5. output the string as a text</p><p></p><p>I want somebody to create the same app with JAVA (to run on OSX?</p><p></p><p>Here is the vb code I wrote</p><p>[code]</p><p>[FONT="Lucida Console"]Private Sub Command1_Click()</p><p>Dim sInput, sOutput As String</p><p>Dim i As Integer</p><p>Dim s As String * 1</p><p></p><p>sInput = Trim(Text1.Text)</p><p>If Len(sInput) Then</p><p> For i = 1 To Len(sInput)</p><p> s = Mid(sInput, i, 1)</p><p> If Not ((Asc(s) = 13) Or (Asc(s) = 10)) Then</p><p> sOutput = sOutput & Chr(Asc(s) Xor 170)</p><p> Else</p><p> sOutput = sOutput & s</p><p> End If</p><p> Next i</p><p>End If</p><p></p><p>Text1.Text = sOutput</p><p>End Sub[/FONT][/code]</p><p></p><p>Can someone do this big help for me?</p></blockquote><p></p>
[QUOTE="djHiran, post: 2325227, member: 6429"] I wrote an app using VB6. That is a very simple app which gets a text input and read it letter by letter and get the ASCII values of the text, and XOR the values with AA (hex) (or 170- binary 10101010) if not ASCII = 13 or 10, and output the processed one back as a string. 1. Get text input 2. For each letter in the text, get their ASCII values 3. For each letter, if not ASCII = 13 or 10, XOR the value with 170, if its 13 or 10, just pass the letter to the next step 4. Recombine each letter to a new string 5. output the string as a text I want somebody to create the same app with JAVA (to run on OSX? Here is the vb code I wrote [code] [FONT="Lucida Console"]Private Sub Command1_Click() Dim sInput, sOutput As String Dim i As Integer Dim s As String * 1 sInput = Trim(Text1.Text) If Len(sInput) Then For i = 1 To Len(sInput) s = Mid(sInput, i, 1) If Not ((Asc(s) = 13) Or (Asc(s) = 10)) Then sOutput = sOutput & Chr(Asc(s) Xor 170) Else sOutput = sOutput & s End If Next i End If Text1.Text = sOutput End Sub[/FONT][/code] Can someone do this big help for me? [/QUOTE]
Insert quotes…
Verification
Haya warak paha keeyada? (haya wadi kireema paha)
Post reply
Top
Bottom