PHPackages                             proberts/skip32 - 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. proberts/skip32

ActiveLibrary[Security](/categories/security)

proberts/skip32
===============

Skip32 php implementation - 32-bit block cipher based on Skipjack

0.0.0-alpha-2(11y ago)046.6k↓44.4%UNLICENSEPHP

Since Jul 8Pushed 11y agoCompare

[ Source](https://github.com/piersroberts/Skip32)[ Packagist](https://packagist.org/packages/proberts/skip32)[ RSS](/packages/proberts-skip32/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

```
Skip32 php implementation
=========================

32-bit block cipher based on Skipjack

This cipher can be handy for scrambling small (32-bit) values when you would like to obscure them while keeping the encrypted output size small (also only 32 bits).

Skip32.php
----------

Simple API to encrypt/decrypt values using the Skip32 cipher

Example :

  $key = '0123456789abcdef0123'; // 10 bytes key
  $int = 4294967295; // 4 bytes integer

  $encrypted = Skip32::encrypt($key, $int);
  $decrypted = Skip32::decrypt($key, $encrypted);

  printf("%d encrypted to %d\n", $int, $encrypted);
  printf("%d decrypted to %d\n", $encrypted, $decrypted);

 This will display (on 64-bit architecture) :

  4294967295 encrypted to 572455217
  572455217 decrypted to 4294967295

Skip32Cipher.php
----------------

Adaptation of a direct Perl translation of the SKIP32 C implementation
http://search.cpan.org/~esh/Crypt-Skip32/lib/Crypt/Skip32.pm
http://www.qualcomm.com.au/PublicationsDocs/skip32.c

Example :

  $key = pack('H20', '0123456789abcdef0123'); // 10 bytes key
  $cipher = new Skip32Cipher($key);

  $int = 4294967295; // 4 bytes integer

  $bin = pack('N', $int);
  $encrypted = $cipher->encrypt($bin);
  list(, $encryptedInt) = unpack('N', $encrypted);

  printf("%d encrypted to %d\n", $int, $encryptedInt);

  $bin = pack('N', $encryptedInt);
  $decrypted = $cipher->decrypt($bin);
  list(, $decryptedInt) = unpack('N', $decrypted);

  printf("%d decrypted to %d\n", $encryptedInt, $decryptedInt);

 This will display (on 64-bit architecture) :

  4294967295 encrypted to 572455217
  572455217 decrypted to 4294967295

Performed by Nicolas Lenepveu
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

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 ~7 days

Total

2

Last Release

4325d ago

### Community

Maintainers

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

---

Top Contributors

[![nlenepveu](https://avatars.githubusercontent.com/u/508650?v=4)](https://github.com/nlenepveu "nlenepveu (5 commits)")[![piersroberts](https://avatars.githubusercontent.com/u/362272?v=4)](https://github.com/piersroberts "piersroberts (2 commits)")

### Embed Badge

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

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41478.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

87117.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[paragonie/hidden-string

Encapsulate strings in an object to hide them from stack traces

7410.6M39](/packages/paragonie-hidden-string)

PHPackages © 2026

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