EncryptionStrategy enum
Encryption strategy. Preference should be EncryptionStrategy.aes256Gcm
for symmetric encryption and
EncryptionStrategy.rsa4096
for asymmetric encryption.
- Inheritance
- Available extensions
Values
- aes256Gcm → const EncryptionStrategy
-
(Recommended for symmetric encryption) https://en.wikipedia.org/wiki/Galois/Counter_Mode
- aes256Cbc → const EncryptionStrategy
-
https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Cipher_block_chaining_(CBC)
- aes256Ctr → const EncryptionStrategy
-
https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Counter_(CTR)
- rsa4096 → const EncryptionStrategy
-
For asymmetric encryption https://en.wikipedia.org/wiki/RSA_(cryptosystem)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
encode(
) → String -
Available on EncryptionStrategy, provided by the MapToService extension
Convert an EncryptionStrategy to a string so it can be used in Cryppo's serialization format -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toService(
) → EncryptionService -
Available on EncryptionStrategy, provided by the MapToService extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
EncryptionStrategy> - A constant List of the values in this enum, in order of their declaration.