LocalV4 class
Реализация локального режима PASETO версии 4 (v4.local).
Использует XChaCha20 для шифрования и BLAKE2b для MAC и генерации ключей. Основано на спецификации PASETO v4: https://github.com/paseto-standard/paseto-spec
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
decrypt(
Token token, {required SecretKey secretKey, List< int> ? implicit}) → Future<Package> - Дешифрует PASETO v4.local токен.
-
encrypt(
Package package, {required SecretKey secretKey, List< int> ? implicit}) → Future<Payload> - Шифрует пакет данных, создавая PASETO v4.local токен.
-
testDeriveKeys(
List< int> key, List<int> nonce) → Future<void> - ВРЕМЕННЫЙ МЕТОД ДЛЯ ОТЛАДКИ - убрать после тестирования