Notices


Reply
Thread Tools
Posts: 594 | Thanked: 1,094 times | Joined on Aug 2012 @ Rhine
#2871
Originally Posted by knobtviker View Post
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.
http://talk.maemo.org/showthread.php?t=84605&page=135

It seems like Yappari ist still working after Whatsapp-Upgrade, so maybe Scorpius got a solution for the problem...
 
Posts: 648 | Thanked: 650 times | Joined on Oct 2011
#2872
Originally Posted by Zion~ View Post
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.
What have you been smoking? It sure produce some nice hallucination!
 

The Following 2 Users Say Thank You to SamGan For This Useful Post:
Zion~'s Avatar
Posts: 46 | Thanked: 7 times | Joined on Aug 2012 @ Antigua W.I
#2873
Originally Posted by SamGan View Post
What have you been smoking? It sure produce some nice hallucination!
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')
 
Posts: 137 | Thanked: 51 times | Joined on Aug 2012 @ Netherlands
#2874
Originally Posted by knobtviker View Post
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.
RC4 encryption huh, is because whatsapp is sending messages encrypted now?
 
Zion~'s Avatar
Posts: 46 | Thanked: 7 times | Joined on Aug 2012 @ Antigua W.I
#2875
Originally Posted by sigpro View Post
RC4 encryption huh, is because whatsapp is sending messages encrypted now?
Messages were always encrypted.
 
Posts: 137 | Thanked: 51 times | Joined on Aug 2012 @ Netherlands
#2876
Originally Posted by Zion~ View Post
Messages were always encrypted.
No that's not true before it was unencrypted...so plain text.
Please get your facts right!
 
Posts: 2 | Thanked: 6 times | Joined on Aug 2012
#2877
Originally Posted by Zion~ View Post
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')
I guess the interesting part is whether we have the key (ie reverse-engineered out of the (latest?) Symbian code, or whether we need someone to work some magic...
 
Zion~'s Avatar
Posts: 46 | Thanked: 7 times | Joined on Aug 2012 @ Antigua W.I
#2878
Originally Posted by sigpro View Post
No that's not true before it was unencrypted...so plain text.
Please get your facts right!
Is this straight enough for you? https://twitter.com/WhatsApp/status/239100067410227201
 
Posts: 8 | Thanked: 0 times | Joined on May 2012
#2879
Originally Posted by Zion~ View Post
Is this straight enough for you? https://twitter.com/WhatsApp/status/239100067410227201
Yes, it says "some time". Encryption has been started to be implemented into the clients a couple of weeks or months ago, if I remember it right. It definetely was this year.
 
chenliangchen's Avatar
Posts: 1,478 | Thanked: 9,871 times | Joined on Dec 2008 @ Shanghai / London
#2880
Originally Posted by Zion~ View Post
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.
Please dude can you say something that makes sence?

Please no more jokes!
 

The Following User Says Thank You to chenliangchen For This Useful Post:
Reply

Tags
godoftool, harmattan, is-a-miracle, nokia n9, spacker_thread, tarekgalal, toddler_daycare, toolcoderus, wazapp, whatsapp


 
Forum Jump


All times are GMT. The time now is 18:48.