Skip to content

Commit cbc388c

Browse files
committed
docs: fix documentation
1 parent cd1660e commit cbc388c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `CryptoDriver` is a simple and easy-to-use encryption class, manages cipher
88
- [Importing](#importing)
99
- [Usage](#usage)
1010
- [API](#api)
11-
- [CryptoDriver(key)](#cryptodriverpassword)
11+
- [CryptoDriver(password)](#cryptodriverpassword)
1212
- [CryptoDriver#encrypt(data)](#cryptodriverencryptdata)
1313
- [CryptoDriver#decrypt(encrypted)](#cryptodriverdecryptencrypted)
1414
- [Security Considerations](#security-considerations)
@@ -83,8 +83,8 @@ Example
8383
```js
8484
const CryptoDriver = require('crypto-driver');
8585

86-
const key = 'd6F3Efeqd6F3Efeqd6F3Efeqd6F3Efeq';
87-
const crypto = new CryptoDriver(key);
86+
const password = 'this is secret';
87+
const crypto = new CryptoDriver(password);
8888
```
8989

9090
### `CryptoDriver#encrypt(data)`

0 commit comments

Comments
 (0)