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

Error in Decrypt Function - "Padding is invalid and cannot be removed" #23

Closed
diandsonc opened this issue Aug 30, 2023 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@diandsonc
Copy link
Owner

The current implementation of the Decrypt function is causing an error with the message "Padding is invalid and cannot be removed." This issue stems from incorrect hash position retrieval within the Decrypt function, leading to improper data decryption.

Steps to Reproduce:

  1. Encrypt sensitive data using the Encrypt function.
  2. Attempt to decrypt the encrypted data using the Decrypt function.
  3. Observe the "Padding is invalid and cannot be removed" error.

Expected Behavior:

The Decrypt function should successfully decrypt the encrypted data without throwing the "Padding is invalid and cannot be removed" error.

Additional Information:

Upon investigation, it appears that the Decrypt function is retrieving the hash position incorrectly, resulting in data decryption errors. This issue needs to be addressed to ensure proper data decryption and avoid the mentioned error.

@diandsonc diandsonc added the bug Something isn't working label Aug 30, 2023
@diandsonc diandsonc self-assigned this Aug 30, 2023
diandsonc added a commit that referenced this issue Aug 30, 2023
Fixes the "Padding is invalid and cannot be removed" error in the decrypt function by ensuring the correct hash position is used for decryption.

Issue #23
diandsonc added a commit that referenced this issue Aug 30, 2023
Fixes the "Padding is invalid and cannot be removed" error in the decrypt function by ensuring the correct hash position is used for decryption.

Issue #23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant