Skip to content

Commit 83f6e24

Browse files
committed
README: box.open and secretbox.open return null
Fixes #132
1 parent e5ca74e commit 83f6e24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Returns an encrypted and authenticated message, which is
135135
Authenticates and decrypts the given box with peer's public key, our secret
136136
key, and the given nonce.
137137

138-
Returns the original message, or `false` if authentication fails.
138+
Returns the original message, or `null` if authentication fails.
139139

140140
#### nacl.box.before(theirPublicKey, mySecretKey)
141141

@@ -187,7 +187,7 @@ Returns an encrypted and authenticated message, which is
187187

188188
Authenticates and decrypts the given secret box using the key and the nonce.
189189

190-
Returns the original message, or `false` if authentication fails.
190+
Returns the original message, or `null` if authentication fails.
191191

192192
#### nacl.secretbox.keyLength = 32
193193

0 commit comments

Comments
 (0)