Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid version tag when migrating from halite 4.8.0 to 5.1.0 #187

Open
duronrulez opened this issue Jun 23, 2023 · 0 comments
Open

invalid version tag when migrating from halite 4.8.0 to 5.1.0 #187

duronrulez opened this issue Jun 23, 2023 · 0 comments

Comments

@duronrulez
Copy link

We've recently tried to upgrade our halite version from 4.8.0 to 5.1.0, but as soon as the upgrade finished we started receiving "invalid version tag" exceptions:

$symmetricKey = KeyFactory::deriveEncryptionKey(
        new HiddenString(XX_PASSPHRASE_XX),
        base64_decode(SALT__XX__XX), 
        KeyFactory::INTERACTIVE,
        SODIUM_CRYPTO_PWHASH_ALG_ARGON2I13
);

$resource = fopen('php://memory', 'w+');
File::decrypt(new Halite\Stream\ReadOnlyFile(self::ENCRYPTION_STORAGE.$keyName.'Private.key'), new Halite\Stream\MutableFile($resource), $symmetricKey);

Is there possibly a breaking change between the 2 versions that we're not aware of?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant