AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Funciones estándar / Funciones de Windows / Funciones varias de WINDEV
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Returns a buffer to the specified size filled with random data, that can be used with the cryptographic technologies.
Remark: The returned buffer can be used as key for the encryption functions for example.
Example
// Generate a 32-byte random key (256 bits)
RandomKey is Buffer = RandomCryptoBuffer(32)
// Encryption with the generated key
EncryptedMessage is Buffer = CryptStandard(MyMessage, RandomKey)
Syntax
<Result> = RandomCryptoBuffer([<Buffer size>])
<Result>: Buffer
  • Buffer filled with random data,
  • Empty buffer if an error occurs.
<Buffer size>: Optional integer
Size (in number of bytes) of buffer to initialize (32 by default).
Remarks
  • The first call to the function can be quite long (one second or more if the size of buffer to initialize is important). Indeed, initializing the random mechanism is very complex.
  • InitRandom has no effect on the result of RandomCryptoBuffer.
Business / UI classification: Neutral code
Component: wd290std.dll
Versión mínima requerida
  • Versión 23
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/03/2023

Señalar un error o enviar una sugerencia | Ayuda local