From anonymous, 1 Month ago, written in Python.
This paste is a reply to Untitled from anonymous
- view diff
Embed
  1. def dec(bytestr):
  2.     positions = [7, 5, 4, 3, 6, 2, 1, 0]
  3.     res = []
  4.     for c in bytestr:
  5.         outc = 0x2800
  6.         for i in range(0, 8):
  7.             if c & (1 << i):
  8.                 outc |= (1 << positions[i])
  9.         res.append(outc)
  10.  
  11.     return ''.join([chr(b) for b in res])

Replies to Re: Untitled rss

Title Name Language When
Re: Re: Untitled anonymous python 1 Month ago.
Re: Re: Untitled anonymous python 1 Month ago.