Sep-09-2019, 08:20 PM
I have a problem, my code uses the hash command to "encrypt" a number, the problem is that when I run the process through the Spyder program it gives me an X number and when I run the same code from CMD I get a completely different one. Why?
This is my function that encrypt my number.
For CMD the resulting number is 1809990662
It should be noted that the version of python in Spyder is 3.7.3 and the version installed in the system is 3.7.2
Any information that I have missed to mention please tell me.
Thanks...


This is my function that encrypt my number.
import ctypes def encriptar(number, seed): codigo = (number, seed) hash_number = ctypes.c_size_t(hash(codigo)).value return 'R' + str(hash_number) number = encriptar(123456789, 123456) print(number)For Spyder the resulting number is 5923383283137266694
For CMD the resulting number is 1809990662
It should be noted that the version of python in Spyder is 3.7.3 and the version installed in the system is 3.7.2
Any information that I have missed to mention please tell me.
Thanks...