EncryptionCipher enum

Symmetric ciphers supported by Encrypter.

Inheritance
Available extensions

Values

aes256gcm → const EncryptionCipher

AES-256-GCM (opt in with APP_CIPHER=AES-256-GCM). Payload {iv, value, mac: "", tag}, the shape Laravel emits for its aes-256-gcm cipher.

aes256cbc → const EncryptionCipher

AES-256-CBC + HMAC-SHA256, encrypt-then-MAC (default, ADR-024, like Laravel's APP_CIPHER): byte-compatible with Laravel's aes-256-cbc payloads ({iv, value, mac, tag: ""}), for values shared across a Laravel ⇄ Daravel deployment (BLUEPRINT_V2 §4.4).

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

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

parse(String name) → EncryptionCipher
Parses Laravel's APP_CIPHER names (AES-256-CBC, aes-256-gcm).

Constants

values → const List<EncryptionCipher>
A constant List of the values in this enum, in order of their declaration.