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 thedkLen
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.logN()
Returns the value of thelogN
record component.p()
Returns the value of thep
record component.password()
Returns the value of thepassword
record component.r()
Returns the value of ther
record component.salt()
Returns the value of thesalt
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
ParamsOfScrypt
Creates an instance of aParamsOfScrypt
record class.
-
-
Method Details
-
toString
-
hashCode
-
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
-
salt
-
logN
-
r
-
p
-
dkLen
-