Interface CryptoService

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      @NotNull java.lang.String decrypt​(@NotNull java.lang.String ciphertext)  
      @NotNull java.lang.String encrypt​(@NotNull java.lang.String message)  
    • Method Detail

      • encrypt

        @NotNull
        @NotNull java.lang.String encrypt​(@NotNull
                                          @NotNull java.lang.String message)
        Parameters:
        message - The message to encrypt
        Returns:
        The encrypted message, the ciphertext
      • decrypt

        @NotNull
        @NotNull java.lang.String decrypt​(@NotNull
                                          @NotNull java.lang.String ciphertext)
        Parameters:
        ciphertext - The encrypted message, the ciphertext to decrypt
        Returns:
        The decrypted message