[TIL] 0714
Today I Learnt

0714 :
Cryptography :
https://endland.medium.com/private-key-public-key-8aa94b47edb9
Private key, Public key
PKI 시스템에서 개인키, 공개키, 인증서(그 안에 공개키) 등을 서로 추출해보는 과정을 살펴보자.
endland.medium.com
ECDSA
implementing ECDSA signature with javascript :
can use two libraries :
1. starbank-ecdsa
Easy to use the libary
- can also sign the json
- can generate private key
- can easily get the public key
- sign
https://github.com/starkbank/ecdsa-node
GitHub - starkbank/ecdsa-node: A lightweight and fast pure JS ECDSA library
A lightweight and fast pure JS ECDSA library. Contribute to starkbank/ecdsa-node development by creating an account on GitHub.
github.com
2. ec
- is this common practice ?
- more libraries involved
https://cryptobook.nakov.com/crypto-libraries-for-developers/javascript-crypto-libraries
JavaScript Crypto Libraries - Practical Cryptography for Developers
ec.sign(msgHash, privKey, "hex", {canonical: true});
cryptobook.nakov.com
Dependency Injection :
Dependency injection - Wikipedia
From Wikipedia, the free encyclopedia Jump to navigation Jump to search Software programming technique Dependency injection is often used alongside specialized frameworks, known as 'containers', to facilitate program composition. In software engineering, d
en.wikipedia.org
'IT > TIL(Today I Learnt)' 카테고리의 다른 글
[TIL] Interview Prep (0) | 2022.07.20 |
---|---|
[TIL] 0719 ECDSA (0) | 2022.07.20 |
[TIL] 0713 (0) | 2022.07.14 |
[TIL] 0711 tide (0) | 2022.07.12 |
[TIL] 0707 코로나 (2) | 2022.07.08 |