Interface CryptoService

    • Method Detail

      • encrypt

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

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