Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pairphone to achieve End to End Encryption for GSM Voice call #1

Open
gurtajs4 opened this issue Jul 25, 2018 · 9 comments
Open

Comments

@gurtajs4
Copy link

Hi,
First of all thanks for such a great code. I am grateful that you have decided to publish this as open source.

I wanted to develop a software hosted on Raspberry Pi,

which can catch voice audio from headset(USB Sound Card) , custom encrypt it and then send it as regular stream via regular GSM call over Phone Network, and on the other side, we can do the reverse, decrypt the audio via another raspberry pi and USB Sound Card and output the actual audio to speaker.

Just like jackpair or hackencrypt AECall

http://mrhyper.blogspot.com/2015/12/iphone-encrypt-phone-call_9.html

Regards,
Singh

@gegel
Copy link
Owner

gegel commented Jul 26, 2018 via email

@gurtajs4
Copy link
Author

gurtajs4 commented Jul 26, 2018

Hi Van,

I guess you are referring to https://github.com/gegel/jackpair

I have looked into that and I am not an expert on ARM or Micro-controllers.

I would like to use PairPhone first and develop the System Side application which can do P2P Encryption over GSM Voice call.

I followed the instruction here http://torfone.org/pairphone/
Had the setup like below...

System#1<-> USB-SoundCard#1<-> Cross-Cable(for Mic and Speaker) <->USB-SoundCard#2<-> System#2

Note. I am not using any Mobile Phone or GSM Mobile network between 2 System,

Started ./pp in both System, pressed F4 on System#1 to initiate the guest call...

It says conntected but then nothing works, only noise

Can you guide me and tell me whats I am doing wrong, I would really like to make this work :)

Regards,
Singh

@gegel
Copy link
Owner

gegel commented Jul 27, 2018 via email

@gurtajs4
Copy link
Author

Hi Van,

I check everything twice as you asked, also took some snapshots
Please check zip for respective file

PC_Audio_Device_Details.JPG contain Audio Detail on Laptop side
PI_Audio_Device_Details.JPG contain Audio on Raspberry PI side

PC_PP_START.JPG is Logs from PP Start on Laptop side
PI_PP_START.JPG is Logs from PP Start on Raspberry PI

PC_CALL_INITIATE.JPG is Logs from PP Call initiate on Laptop side [Press f4]
PI_CALL_INITIATE.JPG is Logs from PP Call initiate on Raspberry PI side [Press f4]

PC_Password_Reset.JPG is Logs from Password Reset on Laptop side [Press f7]
PI_Password_Reset.JPG is Logs from Password Reset on Raspberry pi side [Press f7]

LINE_IN_OUT_PC_PI_CONNECTION.JPG Audio Cross connection between Laptop and Raspberry Pi Line-IN
SOUND_CARD_LEFT_MIC_RIGHT_OUT.JPG USB Audio Sound Card Left-Microphone, Right-Speaker

https://www.dropbox.com/s/uldv62u8ybzk2z7/attachments.zip?dl=0

I hear lot of continuous Static on Raspberry PI Headset side
Few concerns, I feel that authentication is not happening properly, also observed that https://github.com/gegel/pairphone/blob/master/crypto/sprng.c#L27 has all the seed method enable , whereas FILESEED might fail as not seed file is present

Other thing is there are no POSIX mutex used .

Van, can you look at the logs and suggest me the correct path to test it?

Thanks,
Singh

@gurtajs4
Copy link
Author

Hi Van,

I found the problem with my Jabra Headset, which was causing the issue.
I have been using the cross cable setup, the connection not so good and I keep hearing noise other than actual decrypted voice sometime, but Audio encoding and decoding seems to work now :)

PairPhone will be work good over direct connecting, acoustic connecting and VHF radio. But not so good over real GSM connecting: some network providers set AMR narrow band trans-coding and modem fails.
In new JackPair project modem significantly improved and use lower bitrate (800 bps instead 1200) so works better.

Now moving on to the above problem, i haven't tested it over GSM Voice Channel but I agree, it might not be good as Operators set narrow band AMR re-encoding.

So if I have to take up the code from JackPair Project and port to this PairPhone project so that I can run this on Ubuntu Laptop, can you share some details on which all module should be changed.

I understand Audio Compression Library code is here https://github.com/gegel/pairphone/tree/master/melpe

and pseudo speech modem Code library is here
https://github.com/gegel/pairphone/tree/master/modem

but i dont understand the similar module on Jackpair project, so would need your guidance if possible.
Please can you comment or provide the code that can be integrated with this Pairphone to achieve the required bitrate 800 bps.

Thanks,
Singh

@gurtajs4
Copy link
Author

gurtajs4 commented Aug 3, 2018

Hi Van,

Did you get chance to look into this.

Regards,
Gurtaj

@gegel
Copy link
Owner

gegel commented Aug 15, 2018 via email

@ASIFKHAN95
Copy link

Hi Van,

I guess you are referring to https://github.com/gegel/jackpair

I have looked into that and I am not an expert on ARM or Micro-controllers.

I would like to use PairPhone first and develop the System Side application which can do P2P Encryption over GSM Voice call.

I followed the instruction here http://torfone.org/pairphone/
Had the setup like below...

System#1<-> USB-SoundCard#1<-> Cross-Cable(for Mic and Speaker) <->USB-SoundCard#2<-> System#2

Note. I am not using any Mobile Phone or GSM Mobile network between 2 System,

Started ./pp in both System, pressed F4 on System#1 to initiate the guest call...

It says conntected but then nothing works, only noise

Can you guide me and tell me whats I am doing wrong, I would really like to make this work :)

Regards,
Singh

hi sing i want to develop this project using raspberry pi can you help me ?

@ASIFKHAN95
Copy link

anyone have developed this project ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants