# TakeScoop/SwiftyRSA

RSA public/private key encryption in Swift

Repository: https://github.com/TakeScoop/SwiftyRSA
Canonical: https://ross.abutalabs.com/products/swiftyrsa
Language: Swift
License: MIT
License Family: permissive
Topics: swift, ios, encryption, rsa, tvos, watchos, security, mobile
Last push: 2025-01-11T04:07:56+00:00

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

## Adoption (not part of the score)
Stars 1304, forks 357 (observed 2026-08-28T04:04:18.520770+00:00)

## What it is
SwiftyRSA is a Swift library for RSA public/private key encryption and decryption on Apple platforms. It supports loading keys from PEM, DER, Base64, data, or SecKey references and encrypting/decrypting strings with PKCS1 padding.

## Use cases
- encrypt sensitive data like license numbers with an RSA public key in an iOS app
- decrypt RSA-encrypted payloads with a private key in Swift
- load PEM or DER public/private keys in an iOS or macOS app
- wrap SecKey references in a friendlier Swift API for RSA operations
- produce base64-encoded RSA ciphertext to send to a backend API

## When to choose
- you need RSA encryption/decryption in Swift on iOS, tvOS, watchOS, or macOS
- you want simple PEM/DER key loading and PKCS1 padding out of the box
- you need an Objective-C-compatible RSA pod

## When to avoid
- you need modern asymmetric crypto like Ed25519 or X25519 rather than RSA
- you need full TLS or certificate handling rather than raw RSA
- you are not on an Apple/Swift platform

## Facets
- artifact type: library
- maturity: maintenance
- function: cryptography, security
- domain: security, mobile-development, apple-ecosystem
- platform: -
- tags: rsa, encryption, swift, pem, public-key-cryptography, tvos, watchos, ios, macos

## Member repositories
- TakeScoop/SwiftyRSA (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:18.520770+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-30T04:51:06.093621+00:00, confidence not recorded.
  - readme: https://github.com/TakeScoop/SwiftyRSA (fetched 2026-08-28T04:04:18.520770+00:00, sha 6d56d0964207)
- Data as of 2026-08-30T08:39:29.467469+00:00.
