chilkat library
The Chilkat class library for Dart and Flutter: HTTP, REST, email (SMTP/POP3/IMAP), FTP, SFTP, SSH, zip, encryption, digital signatures, certificates, XML, JSON and more.
Every Chilkat class is a Ck-prefixed Dart class (CkHttp, CkJsonObject,
CkCrypt2, ...). Properties are Dart getters and setters; a method that can
fail throws a ChilkatException carrying the object's LastErrorText.
Call Chilkat.unlockBundle once at startup.
Every call is synchronous. In a Flutter app, run long operations (network,
large files) inside Isolate.run, creating the Chilkat objects inside the
isolate; Chilkat objects cannot be sent between isolates.
Classes
- Chilkat
- Library-wide helpers.
- CkAi
- Use one consistent API for multiple AI providers.
- CkAsn
- Load, inspect, build, edit, and encode ASN.1 structures in DER or XML form.
- CkAuthAws
- Configure AWS request signing for REST calls and temporary pre-signed URLs.
- CkAuthAzureSAS
- Create Azure Shared Access Signature tokens for signed Azure Storage requests.
- CkAuthAzureStorage
- Authenticate Azure Storage REST requests with account-key Shared Key signing.
- CkAuthGoogle
- Obtain Google OAuth 2.0 access tokens using a service account.
- CkBinData
- Build, transform, encode, decode, inspect, and save binary data.
- CkBz2
-
CkBz2provides BZip2 compression and decompression for files, memory buffers, and BinData. It can create standard .bz2 file images, decompress .bz2 content back to its original bytes, and support abortable long-running operations. - CkCache
- Store, retrieve, expire, and clean up cached text or binary data on disk.
- CkCert
- Load, inspect, validate, and use X.509 certificates throughout Chilkat.
- CkCertChain
- Inspect, verify, export, and work with X.509 certificate chains.
- CkCertStore
- Open, search, manage, and use certificate collections from many sources.
- CkCharset
- Legacy character-set conversion utilities. Migrate before Chilkat v12.0.0.
- CkCodeSign
- Sign, verify, inspect, and remove Authenticode signatures on Windows executables, installers, and scripts.
- CkCompression
- Compress and decompress bytes, text, files, and streams with a flexible API.
- CkCrypt2
- Encrypt, decrypt, hash, sign, verify, encode, and authenticate data.
- CkCsr
- Create, load, inspect, and verify Certificate Signing Requests.
- CkCsv
- Read, edit, sort, and write CSV or delimiter-separated data in memory.
- CkDateTime
-
CkDateTimerepresents a date/time value and provides conversion methods for common date/time formats, including .NET DateTime, DateTime ticks, RFC 822, RFC 3339 / ISO 8601-style timestamps, Unix time, DOS date/time, OLE DATE, NTP time, ULID timestamps, and Chilkat DtObj. It also supports date arithmetic, age/expiration checks, serialization, and local/UTC conversion. - CkDh
- Perform Diffie-Hellman shared-secret key exchange.
- CkDirTree
- Iterate through files and subdirectories under a base directory.
- CkDkim
- Sign and verify MIME email with DKIM signatures.
- CkDns
- Configure DNS resolution and query DNS records directly from Chilkat.
- CkDsa
- Generate, import, export, sign, and verify DSA keys and signatures.
- CkDtObj
- Represent a date/time as simple editable fields.
- CkEcc
- Generate EC keys, create ECDSA signatures, verify signatures, and compute shared secrets.
- CkEdDSA
- Generate Ed25519 keys, sign data, verify signatures, and compute shared secrets.
- CkEmail
- Create, inspect, modify, secure, load, and save complete email messages.
- CkEmailBundle
- Hold, search, sort, remove, save, and reload groups of email messages.
- CkFileAccess
- Read, write, compare, copy, split, inspect, and manage files and paths.
- CkFormats
- A collection of data-format operations, starting with barcode and QR code generation.
- CkFtp2
- Connect, secure, transfer, synchronize, and manage files on FTP servers.
- CkGlobal
- Unlock Chilkat and configure library-wide defaults, diagnostics, and async behavior.
- CkGzip
- Compress, decompress, inspect, and convert GZIP data in files or memory.
- CkHashtable
- Store, look up, remove, enumerate, import, and serialize key/value pairs.
- CkHtmlToText
- Convert HTML into readable plain text with control over links, wrapping, and encoding.
- CkHtmlToXml
- Convert HTML into well-formed XML for structured parsing and searching.
- CkHttp
- HTTPS client for REST API calls, GET/POST/PUT/DELETE/PATCH requests, uploads, and downloads.
- CkHttpCurl
- curl-style HTTP requests with dependency resolution
- CkHttpRequest
- Build structured HTTP requests for use with Chilkat.Http.
- CkHttpResponse
- Inspect HTTP status, headers, cookies, redirects, and response bodies.
- CkImap
- Access, search, download, organize, and monitor email on IMAP servers.
- CkJavaKeyStore
- Load, inspect, modify, convert, and save Java keystore data.
- CkJs
- Execute sandboxed JavaScript inside an application with controlled access to Chilkat features.
- CkJsonArray
- Read, modify, search, and emit ordered JSON arrays.
- CkJsonObject
- Load, navigate, create, modify, search, sort, and emit JSON objects.
- CkJwe
- Create and decrypt JSON Web Encryption payloads in compact or JSON form.
- CkJws
- Create, serialize, load, inspect, and validate JSON Web Signatures.
- CkJwt
- Create, decode, verify, and time-validate compact JSON Web Tokens.
- CkLog
- Build readable structured diagnostic logs with nested context and tagged values.
- CkMailboxes
- Inspect IMAP mailbox names and attributes returned by Chilkat.Imap.
- CkMailMan
- Send, receive, secure, and troubleshoot email with SMTP and POP3.
- CkMcp
- A client for the Model Context Protocol (MCP).
- CkMessageSet
- Represent and pass sets of IMAP message identifiers.
- CkMht
- Create, save, zip, email, and unpack MHT web archives.
- CkMime
- Build, parse, modify, serialize, secure, and inspect MIME and S/MIME data.
- CkNtlm
- Generate, parse, and verify NTLM authentication messages.
- CkOAuth1
- Generate OAuth 1.0 signatures, authorization headers, and signed request URLs.
- CkOAuth2
- OAuth2 Authorization Code Flow
- CkPdf
- PDF Signing, Metadata, and Attachments
- CkPem
- Load, inspect, assemble, export, and convert PEM certificate and key material.
- CkPfx
- Load, inspect, build, export, convert, and import PFX / PKCS#12 containers.
- CkPkcs11
- Work directly with PKCS#11 smart cards, USB tokens, and HSMs.
- CkPrivateKey
- Load, inspect, export, save, and convert one private key.
- CkPrng
- Generate random bytes, encoded values, passwords, and application identifiers.
- CkPublicKey
- Load, inspect, convert, export, and use public-key material.
- CkRest
- Build, send, authenticate, stream, and inspect REST API requests with precise control.
- CkRsa
- Encrypt, decrypt, sign, verify, and generate RSA keys.
- CkSCard
- Communicate directly with smart card readers and cards through PC/SC.
- CkScMinidriver
- Access smart-card certificates, key containers, PINs, files, and on-card signing.
- CkScp
- Transfer files, text, and binary data over SCP using an existing SSH connection.
- CkSecrets
- Manage application secrets through one consistent API.
- CkSecureString
- Store, append, compare, hash, verify, and securely access sensitive string values.
- CkServerSentEvent
- Parse server-sent event text into event name, data, ID, and retry fields.
- CkSFtp
- Transfer, list, manage, and synchronize files over SFTP.
- CkSFtpDir
- Inspect, sort, and iterate an SFTP directory listing.
- CkSFtpFile
- Inspect metadata for a file, directory, symlink, or special item in an SFTP listing.
- CkSocket
- Build custom TCP, TLS, proxy, SSH-tunneled, client/server, and socket-level protocols.
- CkSpider
- Crawl a website domain, manage URL queues, filter links, cache pages, and inspect fetched HTML.
- CkSsh
- Connect to SSH servers, authenticate, run commands, open channels, and manage secure sessions.
- CkSshKey
- Import, export, generate, inspect, convert, and use SSH public or private keys.
- CkSshTunnel
- Create SSH tunnels for secure local, fixed-destination, dynamic, and multi-hop forwarding.
- CkStream
- Read, write, pipe, monitor, and control byte or text streams.
- CkStringArray
- Manage an ordered collection of strings, with StringTable recommended for new code.
- CkStringBuilder
- Build, transform, search, encode, decode, hash, and save mutable text.
- CkStringTable
- Store, load, search, sort, split, retrieve, and save ordered lists of strings.
- CkTar
- Create, list, verify, filter, and extract TAR archives and compressed TAR formats.
- CkTrustedRoots
- Configure the trusted root certificates used by Chilkat certificate validation.
- CkUnixCompress
-
Compress, uncompress, and unpack legacy UNIX
.Zfiles. - CkUpload
- Upload files with HTTP POST, form fields, headers, progress tracking, and TLS control.
- CkUrl
- Parse a URL into its host, path, query, credentials, port, fragment, and TLS details.
- CkWebSocket
- Connect to WebSocket servers and exchange client-side frames and messages.
- CkXml
- Load, navigate, search, edit, transform, and save in-memory XML trees.
- CkXmlCertVault
- Collect certificates, certificate chains, PEM data, and PFX private keys in an XML vault.
- CkXmlDSig
- Load, inspect, canonicalize, and verify XML Digital Signatures.
- CkXmlDSigGen
- Create XML Digital Signatures with precise control over references, transforms, keys, and placement.
- CkXmp
- Read, modify, add, remove, and save XMP metadata in JPG and TIFF files.
- CkZip
- Create, read, modify, encrypt, and extract ZIP archives.
- CkZipCrc
- Calculate ZIP-compatible CRC32 values for files, bytes, strings, and streamed data.
- CkZipEntry
- Inspect, extract, update, and iterate individual entries inside a ZIP archive.
Exceptions / Errors
- ChilkatException
- Thrown when a Chilkat method reports failure.