Skip to content
This repository has been archived by the owner on Nov 6, 2021. It is now read-only.

Padding is Invalid #4

Open
PIN0L33KZ opened this issue Jun 19, 2021 · 0 comments
Open

Padding is Invalid #4

PIN0L33KZ opened this issue Jun 19, 2021 · 0 comments

Comments

@PIN0L33KZ
Copy link

Hi, if i decrypt any String i get this Exception thrown.
System.Security.Cryptography.CryptographicException: "Padding is invalid and cannot be removed."

This is the Code Used:

        'Encrypt Password
        Dim encrypter = New EasyEncrypt
        _encrypted_passwd = encrypter.Encrypt("TestString", Encoding.Default)
        Console.WriteLine(_encrypted_passwd)

        'Decrypt Password
        Dim decrypter = New EasyEncrypt
        _decrypted_passwd = decrypter.Decrypt(_encrypted_passwd, Encoding.Default) 'Excepton is thrown
        Console.WriteLine(_decrypted_passwd)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant