[jitsi-dev] Password encryption used in JITSI SIP Account


#1

Hi,

       Can anyone say what is the encryption used in encrypting password in
the account information got from the following code.

Collection<AccountID> allAccounts = AccountUtils.getStoredAccounts();
        AccountID accountId = null ;

        for(AccountID account : allAccounts)
        {
            if(account.getAccountUniqueID() != null)
            {
                accountId = account;
            }

        }

     accountId.getAccountProperties()

This result I got is

···

***********************************************

{DISPLAY_NAME=divya, SUBSCRIPTION_EXPIRATION=3600, Encodings.SILK/12000=0,
XIVO_ENABLE=false, AUTHORIZATION_NAME=divya, DEFAULT_ENCRYPTION=true,
Encodings.VP8/90000=0, KEEP_ALIVE_INTERVAL=25, Encodings.speex/8000=352,
ENCRYPTION_PROTOCOL.SDES=1, Encodings.SILK/16000=703, PROTOCOL_NAME=SIP,
ENCRYPTION_PROTOCOL_STATUS.SDES=false, Encodings.PCMA/8000=600,
DTMF_MINIMAL_TONE_DURATION=70,
SDES_CIPHER_SUITES=AES_CM_128_HMAC_SHA1_80,AES_CM_128_HMAC_SHA1_32,
Encodings.telephone-event/8000=1, Encodings.opus/48000=750, SAVP_OPTION=0,
Encodings.G723/8000=150, Encodings.iLBC/8000=500, Encodings.SILK/8000=0,
SERVER_ADDRESS=192.168.1.230, IS_PRESENCE_ENABLED=true,
Encodings.SILK/24000=704, FORCE_P2P_MODE=false, Encodings.speex/32000=701,
Encodings.PCMU/8000=650, OVERRIDE_ENCODINGS=false,
Encodings.speex/16000=700, ENCRYPTION_PROTOCOL.ZRTP=0,
PROXY_AUTO_CONFIG=true, POLLING_PERIOD=30, SERVER_PORT=5064, USER_ID=
divya@192.168.1.230, ENCRYPTION_PROTOCOL_STATUS.ZRTP=true,
Encodings.G722/8000=705, XCAP_ENABLE=false, IS_ACCOUNT_DISABLED=false,
DTMF_METHOD=AUTO_DTMF, ACCOUNT_UID=SIP:divya@192.168.1.230,
DEFAULT_SIPZRTP_ATTRIBUTE=true, *ENCRYPTED_PASSWORD=mM4s2Z7niVkB2cz9W+vAvg==
*, Encodings.GSM/8000=450,
ACCOUNT_ICON_PATH=resources/images/protocol/sip/sip32x32.png,
Encodings.H263-1998/90000=0, Encodings.H264/90000=1100,
KEEP_ALIVE_METHOD=OPTIONS}
*************************************************************************************'
See this..

*ENCRYPTED_PASSWORD=mM4s2Z7niVkB2cz9W+vAvg==*
*
*
*Can anyone say...WHich is the Encryption Logic? How I can decrypt?*
*
*
*
*
*Regards,*
*Haridas*


#2

Hi,

Please take a look on AccountsManager class and CredentialStorage
service. The latter is responsible for encrypting/decrypting
passwords.

Regards,
Pawel

···

On Mon, Jun 17, 2013 at 3:14 PM, haridas karunakaran Pillai <haridaskpillai@gmail.com> wrote:

Hi,

       Can anyone say what is the encryption used in encrypting password in
the account information got from the following code.

Collection<AccountID> allAccounts = AccountUtils.getStoredAccounts();
        AccountID accountId = null ;

        for(AccountID account : allAccounts)
        {
            if(account.getAccountUniqueID() != null)
            {
                accountId = account;
            }

        }

     accountId.getAccountProperties()

This result I got is
***********************************************

{DISPLAY_NAME=divya, SUBSCRIPTION_EXPIRATION=3600, Encodings.SILK/12000=0,
XIVO_ENABLE=false, AUTHORIZATION_NAME=divya, DEFAULT_ENCRYPTION=true,
Encodings.VP8/90000=0, KEEP_ALIVE_INTERVAL=25, Encodings.speex/8000=352,
ENCRYPTION_PROTOCOL.SDES=1, Encodings.SILK/16000=703, PROTOCOL_NAME=SIP,
ENCRYPTION_PROTOCOL_STATUS.SDES=false, Encodings.PCMA/8000=600,
DTMF_MINIMAL_TONE_DURATION=70,
SDES_CIPHER_SUITES=AES_CM_128_HMAC_SHA1_80,AES_CM_128_HMAC_SHA1_32,
Encodings.telephone-event/8000=1, Encodings.opus/48000=750, SAVP_OPTION=0,
Encodings.G723/8000=150, Encodings.iLBC/8000=500, Encodings.SILK/8000=0,
SERVER_ADDRESS=192.168.1.230, IS_PRESENCE_ENABLED=true,
Encodings.SILK/24000=704, FORCE_P2P_MODE=false, Encodings.speex/32000=701,
Encodings.PCMU/8000=650, OVERRIDE_ENCODINGS=false,
Encodings.speex/16000=700, ENCRYPTION_PROTOCOL.ZRTP=0,
PROXY_AUTO_CONFIG=true, POLLING_PERIOD=30, SERVER_PORT=5064,
USER_ID=divya@192.168.1.230, ENCRYPTION_PROTOCOL_STATUS.ZRTP=true,
Encodings.G722/8000=705, XCAP_ENABLE=false, IS_ACCOUNT_DISABLED=false,
DTMF_METHOD=AUTO_DTMF, ACCOUNT_UID=SIP:divya@192.168.1.230,
DEFAULT_SIPZRTP_ATTRIBUTE=true, ENCRYPTED_PASSWORD=mM4s2Z7niVkB2cz9W+vAvg==,
Encodings.GSM/8000=450,
ACCOUNT_ICON_PATH=resources/images/protocol/sip/sip32x32.png,
Encodings.H263-1998/90000=0, Encodings.H264/90000=1100,
KEEP_ALIVE_METHOD=OPTIONS}
*************************************************************************************'
See this..

ENCRYPTED_PASSWORD=mM4s2Z7niVkB2cz9W+vAvg==

Can anyone say...WHich is the Encryption Logic? How I can decrypt?

Regards,
Haridas

_______________________________________________
dev mailing list
dev@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/dev