ec96144 Fix unicode in password and add test

2 files Authored by farhaan 6 years ago, Committed by pingou 6 years ago,
    Fix unicode in password and add test
    
    After a long discussion with ``@jcline`` and as he pointed out that using
    ``to_unincode`` is a really bad option for storing password since after
    unicoding some non-ascii value it starts giving the same character. This could
    be really harmful for security reasons.
    
    The tests are provided to check the same that things don't break on entering
    any non-ascii characters.
    
    Signed-off-by: Farhaan Bukhsh <farhaan.bukhsh@gmail.com>
    
        
file modified
+3 -3