You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Random Crypto IV

Accepted answer
50
Views
4
Comments
edited Jun 7, 2022 1:20PM in General Technical Discussions 4 comments

Summary

Generate random IV using Crypto API

Content

Hello!
I need to generate a random IV using Crypto API. Documention mentions setting [Random] flag to true in Crypto/IV class will do so, but i am not sure at what point will it be generated. I tried to initialize the class and set the flag to true, but how do i get the random string.

Thanks

Version

CPHP 1.3

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!