PHPackages                             uninett/feide-secret-generator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. uninett/feide-secret-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

uninett/feide-secret-generator
==============================

A simple script demonstrating how to generate secrets suitable to use for two-factor authentication in Feide.

v0.1(9y ago)16PHP

Since Feb 3Pushed 9y ago8 watchersCompare

[ Source](https://github.com/Uninett/feide-secret-generator)[ Packagist](https://packagist.org/packages/uninett/feide-secret-generator)[ RSS](/packages/uninett-feide-secret-generator/feed)WikiDiscussions master Synced 4w ago

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

Feide two-factor secret generator
=================================

[](#feide-two-factor-secret-generator)

A simple script demonstrating how to generate secrets suitable to use for two-factor authentication in Feide.

The secrets **must** be random strings of 16 base-32-encoded characters, that meaning:

- uppercase ASCII letters, from A to Z, both included, and
- digits from 2 to 7, both included.

There's no restriction to how many letters or digits should be used, nor any other kind of restriction besides the length of the string. However, we recommend to use completely random secrets.

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

[](#installation)

Clone this repository, then [download composer](https://getcomposer.org/download/) to the same directory, and run it:

```
./composer.phar install

```

Usage
-----

[](#usage)

Just call the `generator.php` script and it will output an encrypted secret suitable for storage in the user's entry in the directory, as well as a QR code that can be scanned by an authenticator application:

```
php generator.php

```

You can also specify the secret you would like to use, as well as a label to be added to the secret and the QR code. Use the following command line options:

- `-l` (or `--label`) to specify a label.
- `-s` (or `--secret`) to specify the secret.

For example:

```
php generator.php --secret ABCDEFGHIJ234567 --label "My Code Generator"

```

For help on how to deploy encrypted secrets to the user's directory, see the *Feide two-factor deployment guide*.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

3434d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/579a16ea8afccc6ab420c393f0e573296fe46dcd293aa4f3b71eefc158ebf3e4?d=identicon)[jaime](/maintainers/jaime)

---

Top Contributors

[![jaimeperez](https://avatars.githubusercontent.com/u/1942728?v=4)](https://github.com/jaimeperez "jaimeperez (5 commits)")

---

Tags

feidegoogle-authenticatortotptwo-factor-authentication

### Embed Badge

![Health badge](/badges/uninett-feide-secret-generator/health.svg)

```
[![Health](https://phpackages.com/badges/uninett-feide-secret-generator/health.svg)](https://phpackages.com/packages/uninett-feide-secret-generator)
```

###  Alternatives

[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.1k16.8k](/packages/prestashop-prestashop)[vivait/string-generator-bundle

Generate random strings for IDs or keys using property annotations

1859.4k](/packages/vivait-string-generator-bundle)[asci/track

track is event based tracking system with multiple database backend support.

1024.6k](/packages/asci-track)

PHPackages © 2026

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