#cas #key-exchange #top #encryption #hashing #ed25519 #rsa #cross-platform #github-repository

cas-lib

A function wrapper layer for RustCrypto and Dalek-Cryptography. Intended to be used in FFI situations with a global heap deallactor at the top level project.

54 releases

new 0.2.77 Mar 22, 2026
0.2.73 Feb 26, 2026
0.2.68 Dec 10, 2025
0.2.67 Nov 23, 2025
0.1.7 Jul 21, 2024

#1815 in Cryptography

Download history 70/week @ 2025-12-09 14/week @ 2026-01-06 22/week @ 2026-01-13 26/week @ 2026-02-24 11/week @ 2026-03-03 305/week @ 2026-03-17

342 downloads per month

Apache-2.0

43KB
764 lines

CAS Rust Core Library (cas-lib)

image

Overview

CAS Rust Core Library (cas-lib) is a unified cryptographic abstraction layer for Rust, designed to provide secure, high-performance access to industry-standard cryptographic algorithms. Acting as a wrapper over trusted libraries such as RustCrypto and Dalek-Cryptography, cas-lib enables seamless integration with higher-level languages and FFI layers, including C, TypeScript, Python, and .NET.

Features

  • Modern cryptographic primitives: digital signatures (RSA, Ed25519), hashing, key exchange, symmetric and asymmetric encryption, password hashing, and more
  • Centralized entry point for FFI bindings: C, TypeScript, Python, .NET
  • Built on top of well-established, open-source cryptography libraries
  • Thread-safe, high-performance Rust implementation
  • Cross-platform support: Windows, Linux

Documentation & References

cas-lib builds on the work of leading cryptography projects. For detailed algorithm documentation and implementation notes, please refer to:

Usage Examples

See practical usage and code samples in our Examples.

Supported Platforms

  • Windows x64
  • Linux x64

Disclaimer

This library leverages several cryptographic crates via our core FFI layer. Many of these crates have not undergone formal security audits. Use this library at your own risk and always review the underlying cryptographic implementations for your security requirements.


For questions, support, or to contribute, join our Discord or visit the GitHub repository.

Dependencies

~21MB
~332K SLoC