Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
import 'dart:html'; | |
import 'dart:math'; | |
import 'dart:typed_data'; | |
import "package:bignum/bignum.dart"; | |
import "package:pointycastle/export.dart"; | |
void main() { | |
var keyParams = new RSAKeyGeneratorParameters(new BigInteger("65537"), 2048, 5); |
List some crypto libraries for JavaScript out there. Might be a bit out dated. Scroll to the bottom.
http://www.w3.org/TR/WebCryptoAPI/
This specification describes a JavaScript API for performing basic cryptographic operations in web applications, such as hashing, signature generation and verification, and encryption and decryption. Additionally, it describes an API for applications to generate and/or manage the keying material necessary to perform these operations. Uses for this API range from user or service authentication, document or code signing, and the confidentiality and integrity of communications.