def get_oath_k(args):
if args.oath_k:<EOL><INDENT>decoded = args.oath_k.decode('<STR_LIT>')<EOL><DEDENT>else:<EOL><INDENT>t = input("<STR_LIT>")<EOL>decoded = t.decode('<STR_LIT>')<EOL><DEDENT>if len(decoded) > <NUM_LIT:20>:<EOL><INDENT>decoded = sha1(decoded).digest()<EOL><DEDENT>decoded = decoded.ljust(<NUM_LIT:20>, '<STR_LIT>')<EOL>return decoded<EOL>
Get the OATH K value (secret key), either from args or by prompting.