1.3.1 • Published 9 years ago

nxt-crypto v1.3.1

Weekly downloads
4
License
MIT
Repository
-
Last release
9 years ago

Nxt Crypto

ES6 library for Nxt crypto

API

parseToken(tokenString, dataString)

Pass in the token string and data string to compare to see if it's a valid token.

Returns

{
  isValid: true/false
  timestamp: nxt timestamp
  publicKey: publickey of account that created the token
}

getPublicKey(secretPhrase)

Returns the public key of the passed in secretphrase

getAccountId(publicKey)

Returns numeric accountId belonging to the publicKey

getAccountRS(publicKey, prefix = 'NXT')

Returns Reed Solomon accountId belonging to the publicKey

getAccountRSFromSecretPhrase(secretPhrase, prefix = 'NXT')

Returns Reed Solomon accountId belonging to the secretPhrase

generateSecretPhrase(generateSecretPhrase)

Returns an 128 bytes random secretphrase

encrypt(message, key)

Encrypts a string message with the given string key.

decrypt(encryptedMessage, key)

Decrypt a encrypted object with the given string key.

1.3.1

9 years ago

1.3.0

9 years ago

1.2.2

9 years ago

1.2.1

9 years ago

1.2.0

9 years ago

1.1.3

9 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.0

9 years ago

0.0.17

9 years ago

0.0.16

9 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago