Bio.fromString constructor

Bio.fromString(
  1. OpenSslContext context,
  2. String text
)

Creates a BIO from a String (utf8).

Implementation

factory Bio.fromString(OpenSslContext context, String text) {
  return Bio.fromBytes(context, Uint8List.fromList(text.codeUnits)); // Simple ASCII/UTF8
}