Is using weak random numbers for the initialization vector of AES just a theoretical issue?

I’m the maintainer of pypdf, a Python library for reading/manipulating PDF documents. I recently discovered that pypdf used random instead of secrets for …

Generating the initialization vector (IV) in AES
As part of generating the U-Val… Continue reading Is using weak random numbers for the initialization vector of AES just a theoretical issue?

exploiting the scenario and how to generate a secure reset password token

I am using the following line of code to create a reset password code sent to the user in her/his email. when scanned with brakeman to my ruby code, this line of code is catched and describes it as it is vulnerable.
this is the line of cod… Continue reading exploiting the scenario and how to generate a secure reset password token

How does `crypto.getRandomValues` work in JavaScript, and how is it different from `Math.random`?

I’ve been obsessed with figuring out Math.random in JavaScript and how it works. because how could you imagine a computer picking a random number? Where does the number come from?
But now I realized crypto.getRandomValues does not use rand… Continue reading How does `crypto.getRandomValues` work in JavaScript, and how is it different from `Math.random`?