mirror of
https://github.com/wagesj45/CapyKit.git
synced 2024-11-12 19:23:36 -06:00
1.1 KiB
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.