|
2012-08-29
, 12:30
|
Posts: 648 |
Thanked: 650 times |
Joined on Oct 2011
|
#2872
|
The Following 2 Users Say Thank You to SamGan For This Useful Post: | ||
|
2012-08-29
, 12:33
|
|
Posts: 46 |
Thanked: 7 times |
Joined on Aug 2012
@ Antigua W.I
|
#2873
|
import random, base64 __all__ = ['crypt', 'encrypt', 'decrypt'] def crypt(data, key): """RC4 algorithm""" x = 0 box = range(256) for i in range(256): x = (x + box[i] + ord(key[i % len(key)])) % 256 box[i], box[x] = box[x], box[i] x = y = 0 out = [] for char in data: x = (x + 1) % 256 y = (y + box[x]) % 256 box[x], box[y] = box[y], box[x] out.append(chr(ord(char) ^ box[(box[x] + box[y]) % 256])) return ''.join(out) def encrypt(data, key, encode=base64.standard_b64encode, salt_length=8): """RC4 encryption with random salt and final encoding""" salt = '' for n in range(salt_length): salt += chr(random.randrange(256)) data = salt + crypt(data, key + salt) if encode: data = encode(data) return data def decrypt(data, key, decode=base64.standard_b64decode, salt_length=8): """RC4 decryption of encoded data""" if decode: data = decode(data) salt = data[:salt_length] return crypt(data[salt_length:], key + salt) if __name__ == '__main__': for i in range(10): data = encrypt('secret message', 'my-key') print data print decrypt(data, 'my-key')
|
2012-08-29
, 13:21
|
Posts: 137 |
Thanked: 51 times |
Joined on Aug 2012
@ Netherlands
|
#2874
|
LOL good to know 13 yearolds use N9. It's that intuitive.
1 semi major issue and we're back in business.
Good thing that TGalal was prepared for this.
We were not blocked.
Whatsapp got upgraded and nobody told us when the switch is. :P
So chill people and wait a bit till we break some code.
Thank you for your understanding.
P.S. I don't care if you are 13. You can still read 2 pages before your post?!
Don't think I'm mean. This is a community app and 20 pages of 'not connecting.. OMG I'm so emo...' is working against community.
If someone knows what RC4 is, you'll get a superb chance to be a hero soon, so prepare.
|
2012-08-29
, 13:26
|
|
Posts: 46 |
Thanked: 7 times |
Joined on Aug 2012
@ Antigua W.I
|
#2875
|
|
2012-08-29
, 13:51
|
Posts: 137 |
Thanked: 51 times |
Joined on Aug 2012
@ Netherlands
|
#2876
|
|
2012-08-29
, 14:05
|
Posts: 2 |
Thanked: 6 times |
Joined on Aug 2012
|
#2877
|
lol.. We can at least hope!
Code:import random, base64 __all__ = ['crypt', 'encrypt', 'decrypt'] def crypt(data, key): """RC4 algorithm""" x = 0 box = range(256) for i in range(256): x = (x + box[i] + ord(key[i % len(key)])) % 256 box[i], box[x] = box[x], box[i] x = y = 0 out = [] for char in data: x = (x + 1) % 256 y = (y + box[x]) % 256 box[x], box[y] = box[y], box[x] out.append(chr(ord(char) ^ box[(box[x] + box[y]) % 256])) return ''.join(out) def encrypt(data, key, encode=base64.standard_b64encode, salt_length=8): """RC4 encryption with random salt and final encoding""" salt = '' for n in range(salt_length): salt += chr(random.randrange(256)) data = salt + crypt(data, key + salt) if encode: data = encode(data) return data def decrypt(data, key, decode=base64.standard_b64decode, salt_length=8): """RC4 decryption of encoded data""" if decode: data = decode(data) salt = data[:salt_length] return crypt(data[salt_length:], key + salt) if __name__ == '__main__': for i in range(10): data = encrypt('secret message', 'my-key') print data print decrypt(data, 'my-key')
|
2012-08-29
, 14:15
|
|
Posts: 46 |
Thanked: 7 times |
Joined on Aug 2012
@ Antigua W.I
|
#2878
|
No that's not true before it was unencrypted...so plain text.
Please get your facts right!
|
2012-08-29
, 14:25
|
Posts: 8 |
Thanked: 0 times |
Joined on May 2012
|
#2879
|
Is this straight enough for you? https://twitter.com/WhatsApp/status/239100067410227201
|
2012-08-29
, 14:56
|
|
Posts: 1,478 |
Thanked: 9,871 times |
Joined on Dec 2008
@ Shanghai / London
|
#2880
|
Wazapp isn't down. It has been blocked. It can be said that this was a possible wake up call to the devs at whatsapp, probably an official version might be released soon. Who knows; as of now however.. Goodbye wazapp.
The Following User Says Thank You to chenliangchen For This Useful Post: | ||
Tags |
godoftool, harmattan, is-a-miracle, nokia n9, spacker_thread, tarekgalal, toddler_daycare, toolcoderus, wazapp, whatsapp |
|
It seems like Yappari ist still working after Whatsapp-Upgrade, so maybe Scorpius got a solution for the problem...