com.gs.api.accelrx.crypto.NoOpCryptoProvider Maven / Gradle / Ivy
The newest version!
package com.gs.api.accelrx.crypto;
import com.gs.api.accelrx.CryptoProvider;
import io.reactivex.rxjava3.core.Single;
public class NoOpCryptoProvider implements CryptoProvider {
private NoOpCryptoProvider() {}
public static NoOpCryptoProvider create() {
return new NoOpCryptoProvider();
}
@Override
public Single encrypt(String message) {
return Single.just(message);
}
@Override
public Single encrypt(byte[] message) {
return Single.just(message);
}
@Override
public Single decrypt(String cipherBytes) {
return Single.just(cipherBytes);
}
@Override
public Single decrypt(byte[] cipherBytes) {
return Single.just(cipherBytes);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy