Dart
Dart
Example: Crypt2.DecodeString method
Demonstrates how to call the DecodeString method.Chilkat Dart Downloads
import 'package:chilkat/chilkat.dart';
void main() {
final crypt2 = CkCrypt2();
// The string "Hello World" in base64 (using the utf-8 byte representation) is "SGVsbG8gV29ybGQ="
final encodedStr = 'SGVsbG8gV29ybGQ=';
final encoding = 'base64';
final charset = 'utf-8';
final str = crypt2.decodeString(encodedStr, charset, encoding);
print(str);
// Output is "Hello World"
}