Thread: while loop error. string errors. converting between single chars in c++

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #13
    Registered User
    Join Date
    Jul 2018
    Posts
    8
    this little if.. just me converting some ascii to 32/64 bit in encryption.
    Code:
    if(00110010001100110011010000110101){ 01001101 00101100 01001010 00110010 01010011 00101101 01001101 01001010 }
    one thing i want to add is. in 8bit theres also 2 4bits in 8. and 4 2bit in 8. this below is the enc 2 4 8.

    Code:
    here is an example of 2 bit/ 4bit binary in 8bit. which returns either 1 or 0.
    Its 128bit which means that the binary is compatable with a 32bit program. however
    the binary is encrypted. theres no 111 no 1111 no return 2 a 0000 can come up but only in 128;
    but 88 thats a better digital only 12 off of 100. but theres 12 hours in day.. go figure.
    
    :cool:
    00010001 17 00100001 33 01000100 68  10001000 136
    00010010 18 00100010 34 01000101 69  10001001 137
    00010011 19 00100011 35 01000110 70  10001010 138
    00010100 20 00100100 36 01001000 72  10001100 139
    00010101 21 00100101 37 01001001 73  10001101 140
    00010110 22 00100110 38 01001010 74  10010001 144
    00011000 24 00101000 40 01001011 75  10010010 145
    00011001 25 00101001 41 01001100 76  10010011 146
    00011010 26 00101010 42 01001101 77  10010100 147
    00011011 27 00101011 43 01010001 81  10010110 148
                00101100 44 01010010 82  10011000 152
                00101101 45 01010011 83  10011001 153
                00110001 49 01010100 84  10100010 154
                00110010 50 01010110 85  10100011 155
                00110011 51 01011000 88  10100100 156
                00110100 52 01011001 89  10100101 157
                00110101 53 01100010 98  10100110 158
                00110110 54 01100011 99  10101000 168
                            01100100 100 10101001 169
                            01100101 101 10110001 178
                            01100110 102 10110010 179
                            01101000 104 10110100 180
                            01101001 105 11000100 196
                            01101010 106 11000101 197
                            01101100 107 11000110 198
                            01101101 108 11001000 200
                                         11001001 201
                                         11001010 202
                                         11001100 203
                                         11001101 204
                                         11010001 209
                                         11010010 210
                                         11010011 211
                                         11010100 212
                                         11011000 216
                                         11011001 217

    90 Total 8bit 32bit enc. That should be all of them in encryption. each of these binary runs round in 32bit. its 2bit 32bit.
    200 ints...
    i think the 10 is numeric. the 18 is compiled. the 26 character. and the 34 is 12 over 26. also 34 is a running number.
    if you put the 26 and 34 together thats 50. now im not just making this up they are in order no 111.. its binary enc.
    now on this table 2 and 4 bit are compatable and all 8 bit is.. is 2 4bit. it is possible with if statements in c++.
    to convert 2bit 4bit into binary encryption which = 8bit chars. and bin itself is 1 or 0. not return 2 or 10..
    heres a number table decribing how to convert binary to int.

    Code:
    128 64 32 16 8 4 2 1
      0  1  0  0 0 1 1 0
    
    
    00 01 10 11
    01 10 11 00
    10 11 00 01
    11 00 01 10
    heres a two bit table
    Last edited by lgmbin; 07-17-2018 at 03:38 PM. Reason: hmm took enterd sum space

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 02-16-2010, 02:04 PM
  2. Replies: 15
    Last Post: 11-12-2008, 06:12 PM
  3. Single hex dump - Error codes / Plain errors...
    By Blackroot in forum Windows Programming
    Replies: 4
    Last Post: 04-03-2007, 03:46 AM
  4. How do I loop through a string of chars?
    By silverfoxtp in forum C++ Programming
    Replies: 9
    Last Post: 11-24-2003, 11:04 AM
  5. concatenating single chars to multi char arrays
    By TJJ in forum C Programming
    Replies: 7
    Last Post: 11-20-2003, 04:09 AM

Tags for this Thread