$bool =
wave.Encrypt ("<Wave Filename>","<Password>","<Type>","[Destination File]")
The wave file is encrypted using the encryption type BLOWFISH or XOR.
Parameters
<Wave Filename>
Specify the name of the wave file which has to be encrypted.
<Password>
Specify the password for encryption.
<Type>
Specify the encryption type as "BLOWFISH or XOR".
<Destination File>
Specify the destination wave file.
Return Value
Returns 1 on successful encryption and 0 on failure.
Remark
If destination file is not mentioned as a parameter, then the specified file will be encrypted.
For decrypting the file in Xtend IVR,
use $wavpass = "PASSWORD" and then Play "Encrypted file".
Example
-
$bool = wave.Encrypt("welcome.wav", "ABCD", "BLOWFISH", "output.wav")
msgbox($bool)
- welcome.wav is encrypted and saved as output.wav.
-
$bool = wave.Encrypt("welcome.wav", "ABCD", "BLOWFISH")
msgbox($bool)
- welcome.wav is replaced with the encrypted format.
The original wave can be played by giving $wavpass="ABCD" and play "welcome.wav"
-
$bool = wave.Encrypt("engsre13.wav", "ABCD", "BLOWFISH", "D:\myfolder\output.wav")
msgbox($bool)
-
engsre13.wav is encrypted and saved as output.wav present in the location D:\myfolder.