Classes
Secret
Extends
Serializable
Extended by
Constructors
new Secret()
Parameter | Type |
---|---|
First | number |
Returns |
---|
Secret |
Overrides
Serializable.constructor
Properties
ENCRYPTION_CHECKSUM_SIZE
ENCRYPTION_CHECKSUM_SIZE_V3
ENCRYPTION_KDF_ROUNDS
ENCRYPTION_SALT_SIZE
SIZE
Accessors
encryptedSize
Get Signature
Returns the serialized size of this object when encrypted.
Methods
compare()
Compares this object to another object.
Returns a negative number if this
is smaller than o, a positive number if this
is larger than o, and zero if equal.
Parameter | Type |
---|---|
First | Serializable |
Inherited from
Serializable.compare
equals()
Checks for equality with another Serializable.
Parameter | Type |
---|---|
First | unknown |
Inherited from
Serializable.equals
exportEncrypted()
Encrypts the Secret with a password.
Parameter | Type |
---|---|
First | Uint8Array |
<SerialBuffer> |
serialize()
Parameter | Type |
---|---|
First | SerialBuffer |
Returns |
---|
SerialBuffer |
Inherited from
Serializable.serialize
toBase64()
Formats the object into a base64 string.
Inherited from
Serializable.toBase64
toHex()
Formats the object into a hex string.
Inherited from
Serializable.toHex
toString()
Formats the object into a hex string.
Inherited from
Serializable.toString
exportEncrypted()
Parameter | Type |
---|---|
First | Uint8Array |
<SerialBuffer> |
fromEncrypted()
Decrypts a Secret from an encrypted byte array and its password.
Parameter | Type |
---|---|
First | Uint8Array |
<Entropy | PrivateKey > |