Package org.seedstack.seed.crypto
Interface EncryptionService
-
public interface EncryptionServiceService to do asymmetric encryption and decryption. Encryption uses aX509Certificate, whereas decrypt uses the private key stored in a key store.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]decrypt(byte[] toDecrypt)byte[]encrypt(byte[] toEncrypt)Encrypt a byte[] by using aX509Certificate
-
-
-
Method Detail
-
encrypt
byte[] encrypt(byte[] toEncrypt)
Encrypt a byte[] by using aX509Certificate- Parameters:
toEncrypt- byte[] to encrypt- Returns:
- byte[] encrypted
-
decrypt
byte[] decrypt(byte[] toDecrypt)
- Parameters:
toDecrypt- byte[] to decrypt- Returns:
- byte[] decrypted
-
-