We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d00342b commit 388987eCopy full SHA for 388987e
src/plugins/filter/configcrypto/crypto.rs
@@ -50,7 +50,7 @@ pub struct ConfigEntry {
50
}
51
52
/// Cryptor
53
-trait Cryptor
+pub trait Cryptor
54
where
55
Self: Send + Sync,
56
{
@@ -301,7 +301,7 @@ impl RSACryptor {
301
302
type Aes256Cbc = Cbc<Aes128, Pkcs7>;
303
304
-struct AESCryptor {}
+pub struct AESCryptor {}
305
306
impl Cryptor for AESCryptor {
307
fn encrypt(&self, plaintext: String, key: String) -> Result<String, PolarisError> {
@@ -347,7 +347,7 @@ impl Cryptor for AESCryptor {
347
348
349
mod tests {
350
-
+ use crate::plugins::filter::configcrypto::crypto::{AESCryptor, Cryptor, RSACryptor};
351
352
#[test]
353
fn test_rsa_encrypt_decrypt() {
0 commit comments