• Preparing search index...
  • The search index is not available
@oasisprotocol/client-rt
  • @oasisprotocol/client-rt
  • rofl
  • encryptSecret

Function encryptSecret

  • encryptSecret(name, value, app_sek): string
  • EncryptSecret encrypts the given secret given its plain-text name and value together with the secrets encryption key (SEK) obtained for the given application. Returns the Base64-encoded value that can be used in the configuration.

    Based on https://github.com/oasisprotocol/cli/blob/1fd79c1/build/rofl/secrets.go#L57 and https://github.com/oasisprotocol/oasis-sdk/blob/3177bbc/client-sdk/ts-web/rt/src/callformat.ts#L52

    Parameters

    • name: string
    • value: Uint8Array
    • app_sek: Uint8Array

    Returns string

    • Defined in rt/src/rofl.ts:135

Settings

Member Visibility
@oasisprotocol/client-rt
  • Loading...

Generated using TypeDoc