Learn R Programming

openfhe.R (version 1.6.1)

make_string_plaintext: Encode a character string as a plaintext

Description

Each character becomes one coefficient, so the plaintext modulus must be large enough for the character codes; the OpenFHE examples use 256. Read the string back with get_string_value().

Usage

make_string_plaintext(cc, str)

Value

A Plaintext.

Arguments

cc

A CryptoContext (BFV or BGV).

str

A single character string.