Welcome Guest, Not a member yet? Register   Sign In
Deprecate random_string basic/md5/sha1
#1

(This post was last modified: 03-09-2023, 02:55 AM by kenjis.)

Is anyone using the following types of random_string()?

Quote:basic: A random number based on mt_rand() (length ignored).
md5: An encrypted random number based on md5() (fixed length of 32).
sha1: An encrypted random number based on sha1() (fixed length of 40).
https://codeigniter4.github.io/CodeIgnit...dom_string

As you know, these values are cryptographically insecure.
I personally do not understand the use case.
I suggest that they be deprecated.
Reply


Messages In This Thread
Deprecate random_string basic/md5/sha1 - by kenjis - 03-06-2023, 11:33 PM



Theme © iAndrew 2016 - Forum software by © MyBB