# RNCryptor/RNCryptor

CCCryptor (AES encryption) wrappers for iOS and Mac in Swift. -- For ObjC, see RNCryptor/RNCryptor-objc

Repository: https://github.com/RNCryptor/RNCryptor
Canonical: https://ross.abutalabs.com/products/rncryptor
Homepage: https://groups.google.com/forum/#!forum/rncryptor
Language: Swift
License: MIT
License Family: permissive
Last push: 2025-03-22T14:37:48+00:00

## Health v2 (maintenance only)
Score: 28/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 12, release rhythm 8, longevity 100
- inputs: {"age_days": 5283, "days_push": 529, "days_rel": 529, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3358, forks 512 (observed 2026-08-28T04:07:58.008666+00:00)

## What it is
RNCryptor is a Swift (and Objective-C) library wrapping CommonCrypto AES encryption, implementing a cross-language encrypted data format (v3) with AES-256, PBKDF2 password stretching, random IVs, and encrypt-then-hash HMAC. It supports simple one-shot and incremental streaming encryption/decryption, with compatible implementations in many other languages.

## Use cases
- encrypt files with a password in an iOS app
- securely encrypt data with AES without getting crypto details wrong
- decrypt RNCryptor data from another language like Python or PHP
- stream-encrypt large files incrementally on macOS
- share encrypted data between Swift and server-side languages

## When to choose
- you need password-based AES encryption on iOS/macOS with correct salting, IV, and HMAC handled for you
- you need interoperable encrypted data across multiple languages
- you want a simple, well-tested Swift encryption API

## When to avoid
- you need authenticated encryption modes like AES-GCM or ChaCha20-Poly1305
- you need key-based (not password-based) encryption with external key management
- you're not targeting Apple platforms and need a native implementation (use a language-specific RNCryptor port instead)

## Facets
- artifact type: library
- maturity: stable
- function: cryptography, security, serialization
- domain: security, apple-ecosystem, cross-platform
- platform: -
- tags: aes-256, encryption, pbkdf2, hmac, cross-language-format, commoncrypto, ios, macos, swift

## Member repositories
- RNCryptor/RNCryptor (main) score 28

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:58.008666+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:40:53.824121+00:00, confidence not recorded.
  - readme: https://github.com/RNCryptor/RNCryptor (fetched 2026-08-28T04:07:58.008666+00:00, sha eb467867bfb9)
  - homepage: https://groups.google.com/forum/#!forum/rncryptor (fetched 2026-08-29T09:33:47.601086+00:00, sha c8364eeee767)
- Data as of 2026-08-30T08:39:29.467469+00:00.
