1.3.1 • Published 7 years ago

nxt-crypto v1.3.1

Weekly downloads
4
License
MIT
Repository
-
Last release
7 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

7 years ago

1.3.0

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago