Skip to content

Commit 6faeb34

Browse files
committed
add links
1 parent d6393de commit 6faeb34

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

README.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,18 @@
22

33
7 useful examples of the node crypto module.
44

5-
- Hash
6-
- Salt
7-
- HMAC
8-
- Symmetric Encryption
9-
- Keypairs
10-
- Asymmetric Encryption
11-
- Signing
5+
- Watch [7 Cryptography Concepts](https://youtu.be/NuyzuNBFWxQ) on YouTube
6+
- Full [Node Crypto Tutorial](https://fireship.io/lessons/node-crypto-examples/) on Fireship
127

13-
- Watch [7 Cryptography Concepts]() on YouTube
14-
- Full [Node Crypto Tutorial]() on Fireship
8+
## Concepts
9+
10+
1. Hash
11+
1. Salt
12+
1. HMAC
13+
1. Symmetric Encryption
14+
1. Keypairs
15+
1. Asymmetric Encryption
16+
1. Signing
1517

1618
## Challenge
1719

src/hash.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { createHash } = require('crypto');
33
// Create a string hash
44

55
function hash(input) {
6-
return createHash('sha256').update(input).digest('hex');
6+
return createHash('sha256').update(input).digest('base64');
77
}
88

99
// Compare two hashed passwords

0 commit comments

Comments
 (0)