Questions marquées «javax.crypto»

4
Le bloc final n'est pas correctement rembourré
J'essaie d'implémenter un algorithme de cryptage basé sur un mot de passe, mais j'obtiens cette exception: javax.crypto.BadPaddingException: le bloc final donné n'est pas correctement rempli Quel pourrait être le problème? Voici mon code: public class PasswordCrypter { private Key key; public PasswordCrypter(String password) { try{ KeyGenerator generator; generator = KeyGenerator.getInstance("DES"); …
En utilisant notre site, vous reconnaissez avoir lu et compris notre politique liée aux cookies et notre politique de confidentialité.
Licensed under cc by-sa 3.0 with attribution required.