Options
All
  • Public
  • Public/Protected
  • All
Menu

Class containing Pythia-related cryptographic operations.

Hierarchy

  • VirgilPythiaCrypto

Index

Constructors

constructor

Methods

blind

  • Blinds (i.e. obfuscates) the password.

    Turns the password into a pseudo-random string. Blinding is necessary to prevent third-parties form knowing the end user's password.

    Parameters

    • password: Data

      The user's password.

    Returns PythiaBlindResult

computeTransformationKeyPair

deblind

getPasswordUpdateToken

  • Computes the updateToken based on the old and new transformation private keys. An updateToken allows updating existing deblindedPassword's when rotating the transformation private key in a way that it will match the original blinded password when transformed by the new transformation private key.

    When doing this, one should also change the pythiaScopeSecret.

    Parameters

    Returns Buffer

prove

transform

updateDeblindedWithToken

verify