Class RecoveryCode

java.lang.Object
lol.trq.alts.vault.RecoveryCode

public final class RecoveryCode extends Object
Offline recovery codes for a VaultIdentity. A high-entropy code is shown to the user once; it derives (via PBKDF2) a key that seals a second copy of the identity's private material. There is no server-side escrow — losing both the passphrase and the code means the identity is unrecoverable, by design.
Since:
0.2.0, moved from lol.trq.alts.crypto in 1.0.0
  • Method Details

    • newCode

      public static String newCode()
      Generates a fresh 256-bit recovery code, formatted in dash-separated groups for legibility. Show it to the user exactly once; it is never stored in plaintext.
      Returns:
      the formatted recovery code
      Since:
      0.2.0