I understand that you want to encrypt a signal obtained from ‘AudioDeviceReader’ with any encryption algorithm.
XOR encryption is a simple symmetric encryption technique where the plaintext is combined with a key using the XOR operation. The same key is used to decrypt the message. You can refer to the below link for the same answer –
For further information regarding encryption algorithms for audio files, refer to the file exchange links below: