EncryptionKey

org.llm4s.agent.encryption.EncryptionKey
See theEncryptionKey companion class
@Experimental
object EncryptionKey

Attributes

Companion
class
Source
EncryptionKey.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def fromBase64(id: KeyId, encoded: String): Result[EncryptionKey]

The key id from Base64 (standard or URL-safe alphabet, padded or not), as a secret store or a variable holds it.

The key id from Base64 (standard or URL-safe alphabet, padded or not), as a secret store or a variable holds it.

Attributes

Source
EncryptionKey.scala

A new random key id, from the JVM's SecureRandom. It exists only in this process: generate one in a test, or to try the API.

A new random key id, from the JVM's SecureRandom. It exists only in this process: generate one in a test, or to try the API.

Attributes

Source
EncryptionKey.scala
def of(id: KeyId, material: Array[Byte]): Result[EncryptionKey]

The key id over a copy of material, which must be Bytes long and should come from a CSPRNG or a KMS.

The key id over a copy of material, which must be Bytes long and should come from a CSPRNG or a KMS.

Attributes

Source
EncryptionKey.scala

Concrete fields

val Bytes: Int

The length of a key's material: 32 bytes, an AES-256 key.

The length of a key's material: 32 bytes, an AES-256 key.

Attributes

Source
EncryptionKey.scala