Use proper key name
This commit is contained in:
parent
6c48fc1f5e
commit
e640edee7f
@ -190,6 +190,10 @@ namespace AaxDecrypter
|
|||||||
//Write aax decryption key
|
//Write aax decryption key
|
||||||
string keyPath = Path.ChangeExtension(aaxPath, ".key");
|
string keyPath = Path.ChangeExtension(aaxPath, ".key");
|
||||||
FileUtility.SaferDelete(keyPath);
|
FileUtility.SaferDelete(keyPath);
|
||||||
|
|
||||||
|
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}");
|
await File.WriteAllTextAsync(keyPath, $"Key={DownloadOptions.AudibleKey}{Environment.NewLine}IV={DownloadOptions.AudibleIV}");
|
||||||
|
|
||||||
OnFileCreated(aaxPath);
|
OnFileCreated(aaxPath);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user