File tree 2 files changed +12
-10
lines changed
2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 2
2
3
3
7 useful examples of the node crypto module.
4
4
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
12
7
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
15
17
16
18
## Challenge
17
19
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const { createHash } = require('crypto');
3
3
// Create a string hash
4
4
5
5
function hash ( input ) {
6
- return createHash ( 'sha256' ) . update ( input ) . digest ( 'hex ' ) ;
6
+ return createHash ( 'sha256' ) . update ( input ) . digest ( 'base64 ' ) ;
7
7
}
8
8
9
9
// Compare two hashed passwords
You can’t perform that action at this time.
0 commit comments