# 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#** ``` C# public static byte[] GetSalt( int length = 32 ) ``` **F#** ``` 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