Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> python message.py 'REMEMBER TO DRINK YOUR OVALTINE'
- Read Message of 248 Bits.
- Message:REMEMBER TO DRINK YOUR OVALTINE
- Compressing 248 Bits into 144 Bits. (41pc compression)
- Compressed Message:010000011001000110011111001000010100000000110010000010100100011110001111011000001111000000101111011101000000001011111001010111010011011110000001
- Sending Message.
- Decompressing Message into 248 Bits.
- Decompressed Message:REMEMBER TO DRINK YOUR OVALTINE
- Message Matches!
- >> python message.py 'GIANTS BEAT DODGERS 10 TO 9 AND PLAY TOMORROW AT 1300'
- Read Message of 424 Bits.
- Message:GIANTS BEAT DODGERS 10 TO 9 AND PLAY TOMORROW AT 1300
- Compressing 424 Bits into 252 Bits. (40pc compression)
- Compressed Message:101101110101100000110110000011110010000101010011000010100010101010110001010001100000111101001111000100000011001000001111101100000101100010100000111011010101111100000000001100101001001001000100001011111000000001010011000011110100111110101111000111110001
- Sending Message.
- Decompressing Message into 424 Bits.
- Decompressed Message:GIANTS BEAT DODGERS 10 TO 9 AND PLAY TOMORROW AT 1300
- Message Matches!
- >> python message.py 'SPACE THE FINAL FRONTIER THESE ARE THE VOYAGES OF THE BIT STREAM DAILY PROGRAMMER TO SEEK OUT NEW COMPRESSION'
- Read Message of 872 Bits.
- Message:SPACE THE FINAL FRONTIER THESE ARE THE VOYAGES OF THE BIT STREAM DAILY PROGRAMMER TO SEEK OUT NEW COMPRESSION
- Compressing 872 Bits into 484 Bits. (44pc compression)
- Compressed Message:0110111001011111010100010000001111000001000011110011011110000101110100001111001101000010100000110111000101000000001111000001011000010000010101000001000000111100000100001111100100101111000001011011000101100000001011110011000000111100000100001111001001110011000001100011010000010101100100001010010101111101111100000000111001000010101101000101100110010001010000000011001000000110000100011111011000000010111101110011000010000001111110000000111101010010100111100100000101100110011100101000
- Sending Message.
- Decompressing Message into 872 Bits.
- Decompressed Message:SPACE THE FINAL FRONTIER THESE ARE THE VOYAGES OF THE BIT STREAM DAILY PROGRAMMER TO SEEK OUT NEW COMPRESSION
- Message Matches!
Add Comment
Please, Sign In to add comment