Skip to content

Commit

Permalink
PKCS8: PBES2 / DES encrypted keys didn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Nov 19, 2023
1 parent 820ec76 commit 9bfd136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpseclib/Crypt/Common/Formats/Keys/PKCS8.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private static function getPBES2EncryptionObject($algo)
{
switch ($algo) {
case 'desCBC':
$cipher = new TripleDES('cbc');
$cipher = new DES('cbc');
break;
case 'des-EDE3-CBC':
$cipher = new TripleDES('cbc');
Expand Down

1 comment on commit 9bfd136

@terrafrost
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1958

Please sign in to comment.