good day. I am asked to design the a simple algorithm to generate random session key id of block length of 8 and change continuously every time it refreshes. Is there any simple algorithm to create random session key id encrypt and decrypt it? I would prefer not to use library supported in python module.

Please kindly advise.

  • $\begingroup$ HKDF is definitely what you want. It's built on top of HMAC, which is a part of the Python 3 standard library. $\endgroup$
    – DannyNiu
    Jul 13 '21 at 6:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.