Skip to content

libsodium.SKI.SecretKey.Generate

Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

Method Signature

 Shared Function Generate() As libsodium.SKI.SecretKey

Return value

An instance of SecretKey containing the newly generated key, or Nil on error.

Remarks

Randomly generates a new SecretKey.

Example

 Dim sk As libsodium.SKI.SecretKey = libsodium.SKI.SecretKey.Generate()
Clone this wiki locally