def pwEncode(pw):
 pop = u'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,;:-_!$?*+#'
 rpw = ((u''.join(random.sample(pop, 32)) + pw) + u''.join(random.sample(pop, 32)))
 return (EncodeMarker + base64.b64encode(rpw.encode(u'utf-8')).decode(u'ascii'))

def pwEncode ( pw ) : pop = u'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.,;:-_!$?*+#' rpw = ( ( u'' . join ( random . sample ( pop , 32 ) ) + pw ) + u'' . join ( random . sample ( pop , 32 ) ) ) return ( EncodeMarker + base64 . b64encode ( rpw . encode ( u'utf-8' ) ) . decode ( u'ascii' ) )
module function to encode a password .