vendredi 15 décembre 2017

How fingerprint authentication compromises your security ?

On most of modern smartphone devices fingerprint authentication is becoming popular, but using it may compromise your security. On Android and iOS devices fingerprint authentication is used to unlock the device and also to access some third party devices instead of using the original password.
Any body having access to your phone and the 4 digits of your pass code can access all your apps and accounts without any problem. He needs to unlock the device using the 4 digits pass code, then add a new fingerprint (his own), he has now access to all your accounts including payments.


I think this issue can be easily fixed by enhancing the security of adding a new fingerprint to your phone.

mardi 21 février 2017

Geometric mean in Python

Here is a small snippet of code that can be used to compute geometric mean of a set of numbers in Python:

import math

def geomean(listofvalues):
    s=0
    for v in listofvalues:
        s+=math.log10(v)
    s=s/len(listofvalues)
    s=math.pow(10,s)
    return s

# main function
def main():
    #test sample
    list=[4,4,4,5]
    y=geomean(list)
    print(y)

# main fucntion call
if __name__ == "__main__":
    main()