Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    FSHP 0.2.1

    Download button

    No screenshots available
    Downloads: 299  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Berk D. Demir | More programs
    Public Domain / FREE
    February 3rd, 2009, 18:23 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    FSHP description

    Fairly Secure Hashed Password

    FSHP (Fairly Secure Hashed Password) is a salted, iteratively hashed password hashing implementation.

    Design principle is similar with PBKDF1 specification in RFC 2898 (a.k.a: PKCS #5: Password-Based Cryptography Specification Version 2.0)

    FSHP allows choosing the salt length, number of iterations and the underlying cryptographic hash function among SHA-1 and SHA-2 (256, 384, 512).

    Security

    Default FSHP1 uses 8 byte salts, with 4096 iterations of SHA-256 hashing.

     * 8 byte salt renders rainbow table attacks impractical by multiplying the required space with 2^64.
     * 4096 iterations causes brute force attacks to be fairly expensive.
     * There are no known attacks against SHA-256 to find collisions with a computational effort of fewer than 2^128 operations at the time of this release.

    Implementations

     * Python: Tested with 2.3.5 (w/ hashlib), 2.5.1, 2.6.1
     * Ruby : Tested with 1.8.6
     * PHP5 : Tested with 5.2.6
     * Java : Tested with 1.4, 1.5, 1.6. Dependency: Apache Commons - Codec (Base64)
     * Perl : Tested with 5.8.8

    Everyone is more than welcome to create missing language implementations or polish the current ones.

    Basic Operation

    >>> hashed_pw = fshp.crypt('OrpheanBeholderScryDoubt')
    >>> print hashed_pw
    {FSHP1|8|4096}GVSUFDAjdh0vBosn1GUhzGLHP7BmkbCZVH/3TQqGIjADXpc+6NCg3g==
    >>> fshp.check('OrpheanBeholderScryDoubt', hashed_pw)
    True


    Customizing the Crypt

    Let's set a higher password storage security baseline.

     * Increase the salt length from default 8 to 16.
     * Increase the hash rounds from default 4096 to 8192.
     * Select FSHP3 with SHA-512 as the underlying hash algorithm.

    >>> hashed_pw = fshp.crypt('ExecuteOrder66', saltlen=16, rounds=8192, variant=3)
    >>> print hashed_pw
    {FSHP3|16|8192}0aY7rZQ+/PR+Rd5/I9ssRM7cjguyT8ibypNaSp/U1uziNO3BVlg5qPUng+zHUDQC3ao/JbzOnIBUtAeWHEy7a2vZeZ7jAwyJJa2EqOsq4Io=



    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    secure password | hashed password | Python library | hashed | secure | password

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM