jackkum / node-pdu

Creates and parses a SMS PDU strings
MIT License
16 stars 11 forks source link

SCA: few parser fixes #16

Closed rsa9000 closed 5 years ago

rsa9000 commented 6 years ago

This changes set contains fixes for the padding semi-octet removing and for the SCA length corruption.

With this change the getPhone() method returns:

And SCA no more mangled in the following manner: 07911326040000F0 -> 0B911326040000F0 if you perform the PDU -> JS Object -> PDU converting circle.

See realization details in the commit message.