public static class StreamEncryptor.Default extends Object implements StreamEncryptor
StreamEncryptor.ChaCha20, StreamEncryptor.Default, StreamEncryptor.None, StreamEncryptor.Salsa20| Constructor and Description |
|---|
Default(org.bouncycastle.crypto.StreamCipher cipher,
byte[] key) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] encryptedText) |
byte[] |
encrypt(byte[] decryptedText) |
byte[] |
getKey() |
void |
initialize(byte[] key,
byte[] iv)
Initializes an engine
|
public Default(org.bouncycastle.crypto.StreamCipher cipher,
byte[] key)
cipher - the cipher to usekey - the key to usepublic void initialize(byte[] key,
byte[] iv)
key - the key to useiv - the ivpublic byte[] getKey()
getKey in interface StreamEncryptorpublic byte[] decrypt(byte[] encryptedText)
decrypt in interface StreamEncryptorpublic byte[] encrypt(byte[] decryptedText)
encrypt in interface StreamEncryptorCopyright © 2025. All rights reserved.