Save as viber_decrypt.py and run: python viber_decrypt.py input.enc output.m4a | Method | Difficulty | Audio Quality | Legality | |--------|------------|---------------|----------| | Android (Root) | Hard | Lossless (original) | Gray area | | Android (Non-root) | Medium | Lossless | Gray area | | iOS Screen Record | Easy | Poor (recompressed) | Safe | | Viber Desktop Cache | Very Easy | Lossless | Gray area |
Viber uses a simple XOR cipher with a per-device key. Tools like ViberAudioExtractor (open source on GitHub) can brute the key because the header pattern is predictable. Rename the file to .m4a after decryption.
with open(out_path, 'wb') as f: f.write(data)
adb backup -f viber_backup.ab -noapk com.viber.voip Once you have the .ab file, use a tool like Android Backup Extractor to convert it to a .tar file. Inside, navigate to: /apps/com.viber.voip/ef/ download viber voice message
Use Viber Desktop. Rename the .data files. No coding, no root, no quality loss. Have a different experience? Did Viber update their encryption in 2026? Let me know in the comments below.
Unlike WhatsApp or Telegram, Viber does not offer a simple "Save Audio" button. The app treats voice messages as ephemeral, temporary files. But "ephemeral" doesn’t mean "unavailable."
Published: April 18, 2026 | Reading Time: 6 min Save as viber_decrypt
for i in range(len(data)): data[i] ^= key[i % len(key)]
print(f"Decrypted: out_path") if == " main ": decrypt_viber_audio(sys.argv[1], sys.argv[2])
# AAC header pattern check if data[0:3] != b'\x00\x00\x01': print("Warning: Not a valid AAC file. Decryption may have failed.") with open(out_path, 'wb') as f: f
You cannot browse the /data/data/ folder without root, but you can extract a full app backup.
You will find files with names like xxxxxxxxxxxxxx.enc . These are encrypted voice notes .
Navigate directly to: /data/data/com.viber.voip/files/ Look for the VoiceMessages folder. Copy all .enc files to your PC and run the decryption script. Method 2: iOS (The Screen Recording Workaround) On iPhone, due to the sandboxed file system and lack of user-accessible app directories, you cannot extract the raw file without jailbreaking (not recommended).