Home | Community | Message Board


This site includes paid links. Please support our sponsors.


Welcome to the Shroomery Message Board! You are experiencing a small sample of what the site has to offer. Please login or register to post messages and view our exclusive members-only content. You'll gain access to additional forums, file attachments, board customizations, encrypted private messages, and much more!

Shop: PhytoExtractum Kratom Powder for Sale   Kraken Kratom Red Vein Kratom   Bridgetown Botanicals CBD Concentrates

Jump to first unread post Pages: < Back | 1 | 2  [ show all ]
Offlinehighwayman
long hair, butno hippie

Registered: 12/03/02
Posts: 106
Last seen: 20 years, 1 month
Re: Crack this code! It should be easy! [Re: highwayman]
    #1613098 - 06/05/03 09:27 PM (21 years, 1 month ago)

Actually thinking about it, why leave you hanging? Binary math can be shown pretty quickly.

I'm sure you know already that binary is a series of powers of two when converted to decimal,

1111 1111

128 64 32 16 8 4 2 1

as matts said above, the or operator:

1 or 1 = 1
1 or 0 = 1
0 or 0 = 0

xor:

1 xor 1 = 0
1 xor 0 = 1
0 xor 0 = 0

and:

1 and 1 = 1
1 and 0 = 0
0 and 0 = 0

not:
not 1 = 0
not 0 = 1
not 1010 1011 = 0101 0100

lsh / rsh (left and right shift)

0000 1111 lsh 2 = 0011 1100
1111 0000 rsh 2 = 0011 1100

1000 0001 lsh 1 = 0000 0010
1000 0001 rsh 1 = 0100 0000

also circling variants:

0000 1111 rcir 2 = 1100 0011
1010 1010 lcir 1 = 0101 0101

Ummmm..... lets see, I'm probably going a little to far here, but heres a practical example of binary math, bit vectors:

Way to store a series of true/false values in a byte (or integer of any size).....

One byte is 8 bits each on or off. You assign significance to each bit and set it with the or operator, remove it with the and operator and check it with the and operator as follows:

0000 0000

to set the second bit you would or by 2 (0000 0010)

0000 0000 or
0000 0010
----------------
0000 0010

from there if you wanted to set the third bit, you'd or by 4

0000 0010 or
0000 0100
----------------
0000 0110

to remove the second bit you'd and by not 2 (1111 1101)

0000 0110 and
1111 1101
-------------------
0000 0100

to check if a bit is set you compare the value of bit vector anded by the value of the bit with 0.

so if your vector were to look like this:

1011 0011

and you wanted to see if bit 2 is set you would and the vector by 0000 0010 and if you have 0 it's not set, if not it is.

1011 0011 and
0000 0010
-------------------
0000 0010

so it's set.

Extras: Filter Print Post Top
Offlinehighwayman
long hair, butno hippie

Registered: 12/03/02
Posts: 106
Last seen: 20 years, 1 month
Re: Crack this code! It should be easy! [Re: poke smot!]
    #1613117 - 06/05/03 09:32 PM (21 years, 1 month ago)

Of course it has it's defects.... it's a simple kid's toy as far as encryption goes. But there's no real point of sitting here in a post trying to explain DES's S-Boxes or the mechanics of public key encryption. Hehe....

Extras: Filter Print Post Top
InvisibleSHiZNO
-

Registered: 03/14/03
Posts: 1,467
Re: Crack this code! It should be easy! [Re: highwayman]
    #1613930 - 06/06/03 03:12 AM (21 years, 1 month ago)

you mustve worked on it bit by bit,,,,haha im too funny!@#!

XOR in itself is a pretty shitty encryption....but you already knew that.

I like how you can type one byte into 8 booleans (true/false).... ahhh bit-fields...


--------------------
...

Extras: Filter Print Post Top
Jump to top Pages: < Back | 1 | 2  [ show all ]

Shop: PhytoExtractum Kratom Powder for Sale   Kraken Kratom Red Vein Kratom   Bridgetown Botanicals CBD Concentrates


Similar ThreadsPosterViewsRepliesLast post
* Binary number manipulation to compress random data. Peterthinks 2,852 13 01/17/11 07:33 PM
by moeshroom
* Visual Studio 2015 C++ Compiler Secretly Inserts Telemetry Code Into Binaries Byrain 324 2 06/10/16 02:20 PM
by Byrain
* has bio biomics not been proven through ultra light histology? We have not yet discovered binary pai imachavel 862 9 04/05/12 09:31 AM
by johnm214
* Cool binary marble adding machine YthanA 834 7 06/30/07 07:36 AM
by Colonel Kurtz Ph.D
* Sorting Algorithm for Binary Choice Rating Annom 1,129 11 01/06/11 12:46 PM
by Annom
* Question about binary i guess tak 527 1 04/20/08 11:06 AM
by Seuss
* Worst technological disasters in recent history
( 1 2 3 all )
PjS 8,992 51 09/12/03 10:11 PM
by SHiZNO
* Binary Black Hole Mergers (Semi-Long) Madtowntripper 1,073 8 10/06/07 08:54 PM
by Madtowntripper

Extra information
You cannot start new topics / You cannot reply to topics
HTML is disabled / BBCode is enabled
Moderator: trendal, automan, Northerner
2,407 topic views. 0 members, 1 guests and 5 web crawlers are browsing this forum.
[ Show Images Only | Sort by Score | Print Topic ]
Search this thread:

Copyright 1997-2024 Mind Media. Some rights reserved.

Generated in 0.025 seconds spending 0.007 seconds on 14 queries.