Skip to content

Commit 68b8777

Browse files
authored
fix code indentations (#66)
1 parent f6676c9 commit 68b8777

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
## v??.?.? (????-??-??)
44

5-
* [add skipped integrity checking to README (#65)](https://github.com/nextcloud/encryption-recovery-tools/pull/65)
65
* [Fix swapped GMP and ZLIB error messages (#64)](https://github.com/nextcloud/encryption-recovery-tools/pull/64)
6+
* [add skipped integrity checking to README (#65)](https://github.com/nextcloud/encryption-recovery-tools/pull/65)
7+
* [fix code indentations (#66)](https://github.com/nextcloud/encryption-recovery-tools/pull/66)
78

89
## v31.0.0 (2025-03-16)
910

end-to-end-encryption/recover.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -756,9 +756,9 @@ function decryptPrivateKey($file, $mnemonic) {
756756

757757
// try to decrypt private key with different methods
758758
$methods = [["algorithm" => "sha256", "iterations" => 600000],
759-
["algorithm" => "sha1", "iterations" => 600000],
760-
["algorithm" => "sha1", "iterations" => 1024]];
761-
foreach ($methods as $method) {
759+
["algorithm" => "sha1", "iterations" => 600000],
760+
["algorithm" => "sha1", "iterations" => 1024]];
761+
foreach ($methods as $method) {
762762
// take method parameters
763763
$algorithm = $method["algorithm"];
764764
$iterations = $method["iterations"];
@@ -807,7 +807,7 @@ function decryptPrivateKey($file, $mnemonic) {
807807
if (false !== $result) {
808808
break;
809809
}
810-
}
810+
}
811811

812812
// if we do not have a result then print a debug message
813813
if (false === $result) {
@@ -860,7 +860,7 @@ function extractMetaDataKeys($json, $version) {
860860
$result[] = base64_decode($element);
861861
}
862862
}
863-
}
863+
}
864864
break;
865865

866866
case 2:

0 commit comments

Comments
 (0)