1. 程式人生 > >[WeChall] Training: Encodings I (Training, Encoding)

[WeChall] Training: Encodings I (Training, Encoding)

Training: Encodings I (Training, Encoding)
We intercepted this message from one challenger to another, maybe you can find out what they were talking about.
To help you on your progress I coded a small java application, called JPK.
Note: The message is most likely in english.

10101001101000110100111100110100
00011101001100101111100011101000
10000011010011110011010000001101
11010110111000101101001111010001
00000110010111011101100011110111
11100100110010111001000100000110
00011110011110001111010011101001
01011100100000101100111011111110
10111100100100000111000011000011
11001111100111110111110111111100
10110010001000001101001111001101
00000110010111000011110011111100
11110011111010011000011110010111
0100110010111100100101110


解題:
1.看到0和1,猜測是二進位制askII 轉換。
ASCII 碼使用指定的7 位或8 位二進位制數組合來表示128 或256 種可能的字元。
標準ASCII 碼也叫基礎ASCII碼,使用7 位二進位制數(剩下的1位二進位制為0)來表示所有的大寫和小寫字母,數字0 到9、標點符號, 以及在美式英語中使用的特殊控制字元。
2.用給定的JPK進行Binary Format 轉換,預設bitsperblock 是8,轉換後發現多出1位不能整分,換用7,進行整分。
3.用給定的JPK進行Binary to ASCII轉換即可。
This text is 7-bit encoded ascii. Your password is easystarter.