Skip to content

AES En/Decryption and moving from phpseclib 2 to 3 #1974

Answered by terrafrost
splitbrain asked this question in Q&A
Discussion options

You must be logged in to vote

Try this:

$cipher->setPassword($secret, 'pbkdf2', 'sha1', 'phpseclib');

phpseclib v3 changed the salt from phpseclib to phpseclib/salt.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@splitbrain
Comment options

Comment options

You must be logged in to vote
1 reply
@splitbrain
Comment options

Answer selected by splitbrain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants