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.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Security

    jssha256 0.1

    Download button

    No screenshots available
    Downloads: 921  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Excellent (5.0/5)
    1 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    B. Poettering | More programs
    GPL / FREE
    October 18th, 2006, 15:27 GMT
    ROOT / Security

     Read user reviews (0)  Refer to a friend  Subscribe

    jssha256 description

    jssha256 is a compact JavaScript implementation of the SHA256 secure hash function.

    jssha256 is a compact JavaScript implementation of the SHA256 secure hash function. HMAC calculation is also available.

    Example

    The following code example computes the SHA256 hash value of the string 'abc'.

    SHA256_init();
    SHA256_write("abc");
    digest = SHA256_finalize();
    digest_hex = array_to_hex_string(digest);

    Get the same result by calling the shortcut function SHA256_hash:

    digest_hex = SHA256_hash("abc");

    In the following example the calculation of the HMAC of the string 'abc' using the key 'secret key' is shown.

    HMAC_SHA256_init("secret key");
    HMAC_SHA256_write("abc");
    mac = HMAC_SHA256_finalize();
    mac_hex = array_to_hex_string(mac);

    Again, the same can be done more conveniently:

    mac_hex = HMAC_SHA256_MAC("secret key", "abc");

    Product's homepage

      


    TAGS:

    JavaScript implementation | SHA256 implementation | HMAC-SHA256 implementation | jssha256 | JavaScript | implementation

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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