Abstract
Audio File encryption is an advance encryption technique in real world. It is basically a technique of hybridization, combination of transformation and cryptography. To send message securely inside noisy channel through insecure internet, cryptography plays a most crucial and vital role for encryption. In this paper initially we are trying to encode and decode a .wav file, then compare both the file before encoding and after decoding that they sound technically similar or not.
Access provided by CONRICYT-eBooks. Download conference paper PDF
Similar content being viewed by others
1 Introduction
Encryption of .wav file is one of the challenging issue in the field of network security. Through noisy channel it is very much difficult to send such kind of file. With the help of transformation firstly we convert the file into digital format that means analog to digital conversion [1] can take place, to do so we use pulse code modulation technique. To get back the original sound in terms of .wav file apply pulse code demodulation technique. At the last we compare both the files that they sound similar or not. But there is a scope to encrypt the encoded combination of zero, one in 8 bit ASCII character then shuffling then to produce more encrypted form. To do this project we use MATLAB 2014(a).
2 Methodology
See Fig. 1.
3 PCM Encoding and Decoding Process
Pulse code modulation (PCM) [2] is basically a 3 steps process for analog to digital conversion which includes sampling [3], quantization [3], and encoding. In this paper we use PCM modulation and PCM demodulation technique for encrypting and decrypting a .wav file in terms of combination of zeros, ones and reveres respectively.
3.1 Sampling
In case of sampling [4], the .wav file (continuous time and continuous amplitude) can be converted into discrete time continuous amplitude which is the next input to the quantization process. In practically it is impossible to digitize the .wav file which has infinite number of sample points. So we have to sample the continuous time into discrete time with time interval T.
where sampling interval is T and the sampling frequency is Fs.
To avoid aliasing must satisfy nyquist interval rate where Fs ≥ 2Fmax.
3.2 Quantization
Using quantization [5] we convert the discrete time continuous amplitude signal (output after sampling) into discrete time and discrete amplitude signal. To do so we have to perform the following
where the maximum value is xmax and minimum value is xmin of the analog input signal x. L denotes the number of quantization levels [6]. m is the number of bits used in analog to digital conversion (ADC). Here step size the of the quantizer or the ADC resolution is delta denoted by the symbol ∆. Quantization level is denoted by Xq, and index i is corresponding to the binary code.
3.3 Encoding
After getting the discrete time and discrete amplitude values produced by quantization process converted into combination of zero and ones row vector which will produce the encoded signal.
3.4 Decoding
To decode the encoded combination of zero one we apply the reverse procedure that means initially convert the binary data to decimal data. Then we regain the quantized value by which the demodulated .wav file can re generate.
4 Encryption and Decryption [7]
For encrypting the zero one matrix convert into m × (n = 8 bit) matrix where m is the number of rows and n is the number of column [8]. So after getting the matrix with 8 bit in each row we can easily convert it in their corresponding extended 8 bit ASCII, one row at a time (Figs. 2 and 3).
For decrypting the message we can apply the reverse procedure that means convert ASCII to m × (n = 8 bit) matrix, then again covert it to its original size matrix m × n. Then to regain the original .wav file we again have to transfer the matrix m × n into serial row vector (Fig. 4).
After getting the serial data given by row vector then converted into its decimal form to get back the quantized values which will reproduce the demodulated .wav signal.
5 Result
In our proposed method initially we listen the original .wav file, then using PCM it convertes into its binary combination of zeros and ones and then encrypts. To reform the .wav file we apply the reverse procedure then again we recheck the waveform and sound it as the original one or not. Here we found it sound like the original one. So we can conclude that the correctness of the encoding and decoding process maintain here. In this paper we used MATLAB (R2014a) as an experimental tool (Figs. 5 and 6).
6 Conclusion
In this proposed method we encode and decode a .wav file then check the original file and demodulated .wav files spectra and compare they sound technically same. Due to greater size of .wav file encryption is much more complex so we can proceed to the AES encryption standard by which higher bit 16, 64, 128 bit data can easily be encrypted.
References
Digital signal processing by BP Lathi.
Digital Transmission of Analog Signals: PCM, DPCM and DM, CHAPTER 6,NPTEL Lactures, by Prof. V. Venkata Rao, Professor of Indian Institute of Technology Madras.
“TranterBook” — 2003/11/18 — 16:12 — page 55, Chapter 3 SAMPLING AND QUANTIZING.
Chapter 5 Sampling and Quantization, Lecture Notes for ELE201 Introduction to Electrical Signals and Systems, 1999-2002 by Sanjeev R. Kulkarni.
“Quantization and Dither: A Theoretical Survey” J.Audio Eng. Soc., Vol.40,No. 5,1992 May, Presented at the 91st Convention of the AudioEngineering 2 Society, New York, 1991 October 4-8; revised 1991 October21, by STANLEY P. LIPSHITZ, AES Fellow,ROBERT A. WANNAMAKER, AND JOHN VANDERKOOY, AES Fellow.
Digital signal processing fundamental and applications by LI Tan.
Jayaram P “Information Hiding Using Audio Steganography” The International Journal of Multimedia & Its Applications (IJMA) Vol.3, No.3, August 2011
Study of Encryption and Decryption of Wave File in Image Formats by Rahul R Upadhyay Department of Mechanical Engineering, BBD National Institute of Technology and Management, Lucknow.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2017 Springer Nature Singapore Pte Ltd.
About this paper
Cite this paper
Das, S., Sarkar, D. (2017). Audio File Digitization and Encryption Using ASCII Conversion. In: Bhattacharya, I., Chakrabarti, S., Reehal, H., Lakshminarayanan, V. (eds) Advances in Optical Science and Engineering. Springer Proceedings in Physics, vol 194. Springer, Singapore. https://doi.org/10.1007/978-981-10-3908-9_60
Download citation
DOI: https://doi.org/10.1007/978-981-10-3908-9_60
Published:
Publisher Name: Springer, Singapore
Print ISBN: 978-981-10-3907-2
Online ISBN: 978-981-10-3908-9
eBook Packages: Physics and AstronomyPhysics and Astronomy (R0)