mode = { i and i. rstrip ( "_" ) if i [ ~ 0 ] == "_" else i: ( 0 , eval ( "hashlib.{}" . format ( i ) ) ) if not mode [ i ] else mode [ i ] and ( 1 , None ) if i [ ~ 0 ] == "_" else mode [ i ] for i in mode }