make_string_plaintext: Encode a character string as a plaintext

View source: R/methods-eval-backlog.R

make_string_plaintextR Documentation

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)

Arguments

cc

A CryptoContext (BFV or BGV).

str

A single character string.

Value

A Plaintext.


openfhe.R documentation built on Nov. 13, 2026, 5:07 p.m.