Question: 1. (2pts) There are 3 cryptographic issues with this fragment of PHP code. Explain one cryptographic issue of your choice and suggest a fix. //

1. (2pts) There are 3 cryptographic issues with this fragment of PHP code. Explain one cryptographic issue of your choice and suggest a fix. // build an activation code for a user $timestamp = time(); $first = substr(md5($user['loginname'] . $timestamp . rand(0, $timestamp)), 0, 15); $third = substr(md5($user['email'] . $timestamp. rand(0, $timestamp)), -15); $activationcode = $first. $timestamp . $third . substr(md5($third . $timestamp), 0, 10)
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
