WebRSAEncryptionManager class
Web-spezifischer RSA-Verschlüsselungsmanager für Browser-Umgebungen.
Diese Klasse bietet RSA-Verschlüsselungsfunktionalität speziell für Web-Plattformen und nutzt die native Web Crypto API des Browsers für optimale Performance und Sicherheit. Sie ist als Alternative zur pointycastle-Bibliothek auf Web-Plattformen konzipiert.
Hauptfunktionen:
- RSA-Schlüsselgenerierung mit Web Crypto API
- OAEP-Padding mit SHA-256 Hash-Algorithmus
- Export von Schlüsseln im PEM-Format
- Kompatibilität mit der gsd_encryption-Bibliothek
Technische Details:
- Verwendet RSA-OAEP für sichere Verschlüsselung
- Unterstützt variable Schlüssellängen (Standard: 2048 Bit)
- Exportiert Schlüssel in SPKI (public) und PKCS#8 (private) Formaten
- Automatische Konvertierung in pointycastle-kompatible Objekte
Verwendung: Diese Klasse wird automatisch vom EncryptionManager verwendet, wenn die Anwendung in einer Web-Umgebung läuft. Direkte Verwendung ist normalerweise nicht erforderlich.
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
-
generateRSAKeys(
{int bitLength = 2048}) → Future< AsymmetricKeyPair< RSAPublicKey, RSAPrivateKey> > - Generiert ein RSA-Schlüsselpaar mit der Web Crypto API.