PHPackages                             rncryptor/rncryptor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. rncryptor/rncryptor

AbandonedLibrary[Security](/categories/security)

rncryptor/rncryptor
===================

PHP implementation of RNCryptor

4.3.0(6y ago)79783.5k↓28.4%34MITPHPPHP &gt;=7.0CI failing

Since Jan 16Pushed 6y ago8 watchersCompare

[ Source](https://github.com/RNCryptor/RNCryptor-php)[ Packagist](https://packagist.org/packages/rncryptor/rncryptor)[ Docs](http://rncryptor.github.io)[ RSS](/packages/rncryptor-rncryptor/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (11)Used By (0)

RNCryptor PHP
-------------

[](#rncryptor-php)

[![Build Status](https://camo.githubusercontent.com/f58bb3273515a28737a6f1fa8b0142563dd6a8f37d1df76239088227412a0ba1/68747470733a2f2f7472617669732d63692e6f72672f524e43727970746f722f524e43727970746f722d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/RNCryptor/RNCryptor-php)

This implementation strives to be fully compatible with Rob Napier's Objective-C implementation of RNCryptor. It supports both encryption and decryption of all RNCryptor schema versions through version 3. Due to security concerns with schemas 0 through 2, it is strongly recommended to use schema 3 wherever possible. This is the default if none is specified.

Basic usage is seen in the examples folder.

Installation
------------

[](#installation)

This library assumes you are using [Composer](http://getcomposer.org) for dependency management.

```
composer require rncryptor/rncryptor

```

If your project itself does not use Composer, then it's about time that it did. ;-) We strongly urge using it. Otherwise you will have to manually read `composer.json` and make sure the named dependencies are properly loaded into your project.

FAQ
---

[](#faq)

### It's complaining about a missing function called `hash_pbkdf2`

[](#its-complaining-about-a-missing-function-called-hash_pbkdf2)

This error almost certainly means that this project's dependencies are not installed or being autoloaded properly. See the Installation section above for more.

### It won't decrypt. The "+" on the sending end is getting turned into a " " on the receiving end.

[](#it-wont-decrypt-the--on-the-sending-end-is-getting-turned-into-a---on-the-receiving-end)

This is usually due to passing an encrypted string into an HTTP request without taking care to encode it for HTTP first. It's because Base64 (which RNCryptor's encrypted strings are encoded in) sometimes includes the "+" character in its output, but this character has special meaning in HTTP encoding.

You can most likely solve this by passing the encrypted string through `rawurlencode()` on the sending end (or whatever is the equivalent for the language you are working with) before passing it into your HTTP request. And on the receiving end, you might need to use `rawurldecode()` on the string if your framework isn't already doing this for you.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity53

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~247 days

Recently: every ~270 days

Total

10

Last Release

2279d ago

Major Versions

3.1.4 → 4.0.02017-03-06

PHP version history (4 changes)v3.0.4PHP &gt;=5.3.0

v3.1.0PHP &gt;=5.5.0

4.0.0PHP &gt;=7.0 &lt;7.2

4.1.0PHP &gt;=7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e58c3b09579e26837d556853daadab1609ad3578561e523b2cd924d8c949fa79?d=identicon)[curtisdf](/maintainers/curtisdf)

![](https://www.gravatar.com/avatar/016fe84e5aee8c656a57c88a4d873272969158e88a5b6cf97953c2f6af78c1ca?d=identicon)[guysung](/maintainers/guysung)

---

Top Contributors

[![guysung](https://avatars.githubusercontent.com/u/1663711?v=4)](https://github.com/guysung "guysung (4 commits)")[![rnapier](https://avatars.githubusercontent.com/u/429858?v=4)](https://github.com/rnapier "rnapier (4 commits)")[![curtisdf](https://avatars.githubusercontent.com/u/1476787?v=4)](https://github.com/curtisdf "curtisdf (3 commits)")[![julien-c](https://avatars.githubusercontent.com/u/326577?v=4)](https://github.com/julien-c "julien-c (2 commits)")[![itinance](https://avatars.githubusercontent.com/u/1758597?v=4)](https://github.com/itinance "itinance (1 commits)")[![runxigetepic](https://avatars.githubusercontent.com/u/49413053?v=4)](https://github.com/runxigetepic "runxigetepic (1 commits)")

---

Tags

encryptioncryptorncryptor

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/rncryptor-rncryptor/health.svg)

```
[![Health](https://phpackages.com/badges/rncryptor-rncryptor/health.svg)](https://phpackages.com/packages/rncryptor-rncryptor)
```

###  Alternatives

[phpseclib/phpseclib

PHP Secure Communications Library - Pure-PHP implementations of RSA, AES, SSH2, SFTP, X.509 etc.

5.6k434.8M1.3k](/packages/phpseclib-phpseclib)[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[ionux/phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions required to generate &amp; verify private/public (asymmetric) EC keypairs and ECDSA signatures based on secp256k1 curve parameters. This library also includes a class to generate Service Identification Numbers (SINs) based on the published Identity Protocol v1 spec.

5275.0k30](/packages/ionux-phactor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
