diff options
Diffstat (limited to 'lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm')
-rw-r--r-- | lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm b/lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm index 9c1c381..e5c569d 100644 --- a/lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm +++ b/lib/Spreadsheet/ParseXLSX/Decryptor/Standard.pm @@ -47,7 +47,7 @@ sub _generateDecryptionKey { unless ($self->{pregeneratedKey}) { $hash = $self->{hashProc}->($self->{salt} . Encode::encode('UTF-16LE', $self->{password})); for (my $i = 0; $i < $self->{spinCount}; $i++) { - $hash = $self->{hashProc}->(pack('L', $i) . $hash); + $hash = $self->{hashProc}->(pack('V', $i) . $hash); } $self->{pregeneratedKey} = $hash; } |