The task is as follows. "The script generates a cryptographically strong random key (SecureRandom, RandomNumberGenerator, etc. -required!) With a length of at least 256 bits, makes its move, calculates the HMAC (based on SHA2 or SHA3) from the move with the generated key, shows the user HMAC."

Well, just read the documentation for this very SecureRandom and RandomNumberGenerator, I guess?

andreymal2021-12-20 08:42:34

Please correct the question to reflect the specific problem with enough detail to be able to provide an adequate answer.

Дух сообщества2021-12-20 08:43:11

nodeis.org /api /crypto.html

Alexey Ten2021-12-20 08:51:21