Encryption with Asterisk

General discussions about AsteriskNOW.

Moderators: Moderator, Support

Encryption with Asterisk

Postby hermandy » Tue Dec 24, 2013 8:55 pm


I am new to Asterisk, and I am currently working on a project to create an encrypted conversation between two SIP phones using asterisk. I have had some suggestions to perform the encryption through the audio codec. I was wondering if anyone had any suggestions on where to perform the encryption or how to code it in asterisk. I am not looking to use one of the encryption algorithms that come with asterisk. I am looking to implement my own encryption algorithm into asterisk.

Here is a more detailed description of the project.

I would like to add an audio encryption algorithm to VOIP soft phone.
Encryption is based on preshared long random keys that are only used once
(one-time pad). Only two VOIP phones would share the keys (one transmit
and one receive key). Each VOIP packet would contain header information
about how far into the key to read for correct decryption. On SIP, phones
would check that key ID numbers match. Code would be public domain once
Here is a number of key points that help explain what I am trying to do.
- The two computers would have two pre shared long random keys - a
receive key and transmit key
- The keys would be pre shared on something like a USB flash drive
- The keys could be many GB long
- The keys would be generated at the same physical location and then
physically delivered to the two computers
- The keys would not be transmitted through the internet
- Once a key has been used up, the key would never be reused so the TX or
RX would stop
- Only the WAV part of the VOIP packet would be encrypted.
- Each packet would contain information about how far into the key to go in
order to decrypt. That way each packet could have its WAV part decoded
without depending on any other packet.
- I suspect easiest way to implement idea is to modify an existing audio
- I would make source code public so that people could trust that the codec
did not have problems

Thank you
Posts: 6
Joined: Sat Dec 21, 2013 5:18 pm

Re: Encryption with Asterisk

Postby navaismo » Wed Dec 25, 2013 12:04 am

And your specific question is...?
Salt of the Asterisk
Posts: 1610
Joined: Mon Dec 07, 2009 1:30 pm
Location: Mexico City, Mexico

Re: Encryption with Asterisk

Postby david55 » Wed Dec 25, 2013 4:51 am

AsteriskNOW is a binary packaged system; you can't modify its code.
Moves Like Spencer
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Return to AsteriskNOW General

Who is online

Users browsing this forum: No registered users and 1 guest