主权项 |
1. A computer-implemented method for limiting access to a digital item, the method comprising:
storing a count for the digital item in an access count file by a computer, where the count is a number of accesses permitted for the digital item by a user; receiving a password of the user for accessing the digital item at the computer; generating a plurality of password hashes by the computer by utilizing a one-way hash function based on the number of accesses of the count and the password, to generate the plurality of password hashes based on the count; storing the plurality of password hashes in a password hash file by the computer; receiving a request to access the digital item at the computer, the request comprising the password; accessing the count for the digital item by the computer from the access count file; performing the one-way hash function on the password based on the number of accesses of the count, to generate an access password hash based on the count; validating the request by comparing the plurality of password hashes to the access password hash; provided a password hash of the plurality of password hashes matches the access password hash, granting access to the digital item; and responsive to the granting access to the digital item, decrementing the count and deleting the password hash matching the access password hash from the password hash file. |