SORU
20 EYLÜL 2011, Salı


Nasıl node.js Kripto HMAC-SHA1 hash oluşturmak için kullanılır?

Karma oluşturmak istiyorum "I love cupcakes" (anahtar ile imzalanmış "") abcdeg

Nasıl bir karma , node.js Kripto kullanarak oluşturabilirim?

CEVAP
20 EYLÜL 2011, Salı


Kripto belgeler: http://nodejs.org/api/crypto.html

var crypto = require('crypto')
  , text = 'I love cupcakes'
  , key = 'abcdeg'
  , hash

hash = crypto.createHmac('sha1', key).update(text).digest('hex')

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • dope2111

    dope2111

    29 HAZİRAN 2009
  • FattySpins's channel

    FattySpins's

    17 Mayıs 2009
  • OVERWERK

    OVERWERK

    6 Temmuz 2010