From e640edee7fd79c45ec2ff78f31aee9139c35e915 Mon Sep 17 00:00:00 2001 From: Mbucari <37587114+Mbucari@users.noreply.github.com> Date: Fri, 2 Jun 2023 23:53:48 -0600 Subject: [PATCH] Use proper key name --- Source/AaxDecrypter/AudiobookDownloadBase.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/AaxDecrypter/AudiobookDownloadBase.cs b/Source/AaxDecrypter/AudiobookDownloadBase.cs index 91883c09..44031193 100644 --- a/Source/AaxDecrypter/AudiobookDownloadBase.cs +++ b/Source/AaxDecrypter/AudiobookDownloadBase.cs @@ -190,7 +190,11 @@ namespace AaxDecrypter //Write aax decryption key string keyPath = Path.ChangeExtension(aaxPath, ".key"); FileUtility.SaferDelete(keyPath); - await File.WriteAllTextAsync(keyPath, $"Key={DownloadOptions.AudibleKey}{Environment.NewLine}IV={DownloadOptions.AudibleIV}"); + + if (string.IsNullOrEmpty(DownloadOptions.AudibleIV)) + await File.WriteAllTextAsync(keyPath, $"ActivationBytes={DownloadOptions.AudibleKey}"); + else + await File.WriteAllTextAsync(keyPath, $"Key={DownloadOptions.AudibleKey}{Environment.NewLine}IV={DownloadOptions.AudibleIV}"); OnFileCreated(aaxPath); OnFileCreated(keyPath);