Can anyone solve this code ?
Case Study: Script to Calculate Possible Password Combinations (keyspace) - Need help figuring this out The script should run but not do much yet! Now add your own code to your script, to calculate the ascii character combinations a brute force attack would need to try to exhaust the keyspace (using your code from above). The calculation is similar to the combinations of bits, but instead of a character set of two bits (0,1), ASCII has 95 (printable characters). Below is the code: def get_keyspace(passwd): """print the entropy value for an ascii password""" print('[*] keyspace') char_set = 4 keyspace = 4 # ... REPLACE WITH YOUR CODE HERE ... print(f'[*] Password: {passwd} - Total {keyspace} key combinations') # test case passwd = 'testings' # change the passwd variable to test # call keyspace calc function get_keyspace(passwd)