Deprecate random_string basic/md5/sha1 |
Is anyone using the following types of random_string()?
Quote:basic: A random number based on mt_rand() (length ignored). As you know, these values are cryptographically insecure. I personally do not understand the use case. I suggest that they be deprecated.
No, I quit using them a while back because like you say they are insecure.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
I use "crypto" and "alnum" for generate tokens string. Just random string (w/o security context)
crypto is secure. alnum is not secure now, but I'm going to make it secure.
It is important to note that using the basic, md5, and sha1 methods of random_string() may not be secure as they are not cryptographically secure.
While there may be some use cases for these methods, it is recommended to use more secure methods for generating random strings, such as the OpenSSL library. Considering the potential security risks associated with using these methods, it may be a good idea to deprecate them and encourage the use of more secure options. |
Welcome Guest, Not a member yet? Register Sign In |