Skip to content

Using PRNG to generate an IV is not a good idea #7

@fulopm

Description

@fulopm

As far as I can see, the IVMode class (https://github.com/soywiz/haxe-crypto/blob/master/src/com/hurlant/crypto/symmetric/mode/IVMode.hx) uses a PRNG (which is seeded from the system clock) to generate the initialization vector.
I recommend you guys to use the SecureRandom class, and manually generate an IV instead of the default mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions