CapyKit/Documentation/Help/M_CapyKit_Helpers_SecurityHelper_GetSalt.md
2024-09-04 19:31:43 -05:00

1.1 KiB

GetSalt Method

Generates a random byte array that can act as a salt.

Definition

Namespace: CapyKit.Helpers
Assembly: CapyKit (in CapyKit.dll) Version: 1.0.2

C#

public static byte[] GetSalt(
	int length = 32
)

F#

static member GetSalt : 
        ?length : int 
(* Defaults:
        let _length = defaultArg length 32
*)
-> byte[] 

Parameters

  Int32  (Optional)
(Optional) The desired length of the generated byte array.

Return Value

Byte[]
An array of byte.

Remarks

A default length of SALT_SIZE is provided as a sane default. Larger values can be used for increased entropy.

See Also

Reference

SecurityHelper Class
CapyKit.Helpers Namespace