public Cipher createCipher() { return newCipher(this.toString()); }
public Cipher createCipher() { return newCipher(this.toString()); }
public AesBytesEncryptor(String password, CharSequence salt, BytesKeyGenerator ivGenerator) { PBEKeySpec keySpec = new PBEKeySpec(password.toCharArray(), Hex.decode(salt), 1024, 256); SecretKey secretKey = newSecretKey("PBKDF2WithHmacSHA1", keySpec); this.secretKey = new SecretKeySpec(secretKey.getEncoded(), "AES"); encryptor = newCipher(AES_ALGORITHM); decryptor = newCipher(AES_ALGORITHM); this.ivGenerator = ivGenerator != null ? ivGenerator : NULL_IV_GENERATOR; }
public Cipher createCipher() { return newCipher(this.toString()); }
public Cipher createCipher() { return newCipher(this.toString()); }
public Cipher createCipher() { return newCipher(this.toString()); }