Pudu programming language
Menu

Std.Crypto.newKey

1 declaration

fn

newKey: Result[Bytes, Str]

This is a callable function.

What it does

A fresh key of the length `seal` needs, from the operating system's secure

source.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Names inside [ ] are type arguments, such as the item type held by a collection.
  • Result makes success and recoverable failure part of the function's type.

Back to Std.CryptoSearch related declarations