smswithoutborders / SMSWithoutBorders-App-Android

SWOB relies heavily on the security of the messages it transmits. We accomplish this by using tools like Android Apps which posses well tested tools for security
GNU General Public License v3.0
106 stars 6 forks source link

SMSWithoutBorders - Android

Publishing Payload

pl = b'g'
encrypted_content=b'...'
device_id=b'...'

payload = len(encrypted_content) + pl + encrypted_content + device_id
return base64.encode(payload)

#unpacking in Python
import struct
import base64

payload = base64.decode(incoming_payload)
len_enc_content = struct.unpack("<i", payload[0])
pl = payload[1]
encrypted_content = payload[2:len_enc_content]
device_id = payload[2+len_enc_content:]

Platform specific publications (encrypted content)

""" Email (Gmail etc)
"""
# to:cc:bcc:subject:body

""" Messages (Telegram etc)
"""
# to:body

""" Text (X; Twitter etc)
"""
# body