Code Snippets REXX

Short texts REXX 🧑‍💻 Code snippets REXX ✍️ Reading lists REXX 👀

Google TOTP Authenticator in REXX

/* Rexx */ /* z/OS Google Authenticator TOTP POC */ /* Argument: base32 secret key */ /* Output: TOTP Token */ /* Q License */ /* Author Phil ‘Soldier of FORTRAN’ Young */ NUMERIC DIGITS 10 parse ARG secretkey address syscall ‘time’ interval_no = floor(retval/30) out_hmac = get_HMAC(secretkey, interval_no) token = Get_HOTP_Token(out_hmac) say ‘Google Authenticator:’ […]