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

  • eHow

    eHow

    27 NİSAN 2006
  • FullMag

    FullMag

    15 ŞUBAT 2007
  • YouplusmeVEVO

    YouplusmeVEV

    4 EYLÜL 2014