$bool = wave.Encrypt ("<Wave Filename>","<Password>","<Type>","[Destination File]")
Online IVR Tutorial


Parameters
    <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
  1. $bool = wave.Encrypt("welcome.wav", "ABCD", "BLOWFISH", "output.wav")
    msgbox($bool)

    • welcome.wav is encrypted and saved as output.wav.

  2. $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"

  3. $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.