Swift Package Index


A swift implementation of Shamir's Secret Sharing over GF(2^8)


  • The latest stable release is 1.0.0. Released 2 years ago.
  • The last commit to master was 2 years ago.

Swift Version Compatibility

  • 1.0.0 and master
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 1.0.0 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

SecretShare.swift

A pure Swift implementation of Shamir's Secret Sharing scheme.

A threshold secret sharing scheme to split data into N secret shares such that at least K secret shares must be combined to reconstruct the data.

This is scheme is information-theortic secure; An adversary with K-1 or fewer secret shares would produce any data with equal probability, meaning fewer than K-1 shares reveal nothing about the secret data.

built at krypt.co

Krypton generates and stores an SSH + PGP key pair on a mobile phone. The Krypton app is paired with one or more workstations by scanning a QR code presented in the terminal. When using SSH from a paired workstation, the workstation requests a private key signature from the phone. The user then receives a notification and chooses whether to allow the SSH login.

For more information, check out krypt.co.