java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Crypto.ParamsOfScrypt
- Record Components:
password- The password bytes to be hashed. Must be encoded with `base64`.salt- Salt bytes that modify the hash to protect against Rainbow table attacks. Must be encoded with `base64`.logN- CPU/memory cost parameterr- The block size parameter, which fine-tunes sequential memory read size and performance.p- Parallelization parameter.dkLen- Intended output length in octets of the derived key.
- Enclosing class:
Crypto
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondkLen()Returns the value of thedkLenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.logN()Returns the value of thelogNrecord component.p()Returns the value of theprecord component.password()Returns the value of thepasswordrecord component.r()Returns the value of therrecord component.salt()Returns the value of thesaltrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParamsOfScrypt
Creates an instance of aParamsOfScryptrecord class.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
salt
Returns the value of thesaltrecord component.- Returns:
- the value of the
saltrecord component
-
logN
Returns the value of thelogNrecord component.- Returns:
- the value of the
logNrecord component
-
r
Returns the value of therrecord component.- Returns:
- the value of the
rrecord component
-
p
Returns the value of theprecord component.- Returns:
- the value of the
precord component
-
dkLen
Returns the value of thedkLenrecord component.- Returns:
- the value of the
dkLenrecord component
-