The Citrix CTX1
The Citrix CTX1 Cipher |
Theory
The method is to take each character (c):
x=0 r=0 for x in str: x = ord(c) ^ 0xa5 ^ x r += _chr(((x >> 4) & 0xf) + 0x41) + chr((x & 0xf) + 0x41) return r
A sample run:
Message: this is a secret message Type: citrix Encoding: 'NBBMNAAGIDEPJJBMNIFNILELINFKJKELMOAGMGBAMGACMAAA'
A sample run for decoding::
Message: PBDMPACGKDGPLJDMOKCAOICIKNHMLMGBLA Type: citrix Decode: 'This is some text' Hex: 5468697320697320736f6d652074657874