Constructor.
Domain.
Static
getGet a transformer, constructing it if necessary. The type returned is IdentityTransformer if tweak is undefined, EncryptionTransformer if tweak is defined. Note that although an EncryptionTransformer with a zero tweak operates as an IdentityTransformer, EncryptionTransformer is still the type returned if a zero tweak is explicitly specified.
Domain.
Optional
tweak: number | bigintTweak.
IdentityTransformer if tweak is undefined, EncryptionTransformer if tweak is defined.
Protected
doProtected
doTransform value(s) forward.
Value(s) input type.
Value(s). If this is an instance of Sequence, the minimum and maximum values are validated prior to transformation. Otherwise, the individual value(s) is/are validated at the time of transformation.
Transformed value(s).
Transform value(s) forward, optionally applying a transformation.
Value(s) input type.
Transformation callback output type.
Value(s). If this is an instance of Sequence, the minimum and maximum values are validated prior to transformation. Otherwise, the individual value(s) is/are validated at the time of transformation.
Called after each value is transformed to convert it to its final value.
Transformed value(s).
Identity transformer. Values are transformed to themselves.