Re: How do i change numerics into binary numbers?




"Howk013" <Howk013@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote

The total allocated bits to the whole program is supposed to be 168bits

Is that 168 contigious bits, as would be supposed, or is that 168 bits
scattered out into 28 (8-bit) bytes as you seem to be indicating???


hence , it will look like this : (so on and so forth till the last
parameter is clicked )

000 001 ---------------------> 1
1(bit 7)0(bit 8)0 000---------> P -> 100000 should be @
000 000-----------------------> 0
000 000-----------------------> 0
000 000-----------------------> 0
011 111-----------------------> O -> 011111 should be ?
11x xxx and so on

The errors in your conversion from 6-bit ASCII is also adding
difficulty to understanding what it is you want. From the above,
it looks like you'd end up with a STRING of 28 characters where
each character's least significant 6 bits corresponds to the
ASCII 6- bit table. Is that about correct?

That is quite different from packing bits, using contigious bits,
as would be the expedient thing to do. You are in effect scattering
those 6 bits into 28 (8-bit) characters in a string. What makes it
difficult is that you are not using the bits converted to characters,
you are converting the bits to characters using the 6-bit table, and
then storing those characters in a string. The resulting bit patterns
will not be at all like the bits you started with. You will then
(quite probably) have to do the reverse somewhere down the line,
no? (Is conversion needed both ways?)

LFS
Ref: 6-bit table http://www.byte.com/art/9612/sec4/art4.htm


.



Relevant Pages

  • Re: Base36
    ... static string tokens = ... But - I don't think you want all those silly characters in the product key. ... I should be able to recalc the hash at the client ... > conversion to long so I can pass each long to the BaseXX converter to get ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Slightly tricky string problem
    ... I have a String, which is single character eg "a" ... ASCII is a code defining 128 entities, ... So an UTF-8 encoded file containing only ASCII characters shall ... Unicode didn't define codepoints outside the BMP. ...
    (comp.lang.java.programmer)
  • Re: Slightly tricky string problem
    ... I have a String, which is single character eg "a" ... ASCII is a code defining 128 entities, ... So an UTF-8 encoded file containing only ASCII characters shall ... Unicode didn't define codepoints outside the BMP. ...
    (comp.lang.java.programmer)
  • Re: encrypt email address to a string
    ... would simply reverse the string, like Abigail said or remove the ... You don't want to do an even ASCII exchange mapping because you don't ... and make a simple escape sequence for illegal characters), ... will no be transferring integers, ...
    (comp.lang.perl.misc)
  • Re: Reading an Ascii string
    ... When said "Ascii characters", I meant that they are stored as bytes rather than 16-bit quantities as unicode requires. ... so a string with three characters appears as byte 0x14 followed by the three characters followed by 17 space characters. ... I'll get rid of the text box and store them directly in the database. ...
    (microsoft.public.dotnet.languages.csharp)