Class WikiPrivateKey

  • All Implemented Interfaces:
    SRP6IntegerVariable

    public final class WikiPrivateKey
    extends Object
    implements SRP6IntegerVariable
    Wikipedia Python example variable: private key (x).

    The example on Wikipedia computes this variable in an unusual way:

     x = H(s | ":" | I | ":" | P)
     x = H("2577509697835434688:person:password1234")
     
    • Constructor Detail

      • WikiPrivateKey

        public WikiPrivateKey()
    • Method Detail

      • bytes

        public Bytes bytes​(ByteOrder preferredOrder)
        Description copied from interface: SRP6IntegerVariable
        Returns this SRP-6 Integer Variable as a byte sequence in the preferred byte order.

        The representation returned must be minimal. That is, all leading (or trailing, depending on the preferredOrder) zero bytes have to be trimmed.

        Number zero is hence defined as an empty byte sequence.

        Specified by:
        bytes in interface SRP6IntegerVariable
        Parameters:
        preferredOrder - the preferred byte order of the byte sequence that represents this SRP-6 Integer Variable
        Returns:
        the byte sequence that represents this SRP-6 Integer Variable in the preferred byte order