@itd-api/crypto / CipherName
Type Alias: CipherName
ts
type CipherName = typeof CipherName[keyof typeof CipherName];Defined in: packages/crypto/src/cipher.ts:20
Имена встроенных шифров.
Example
ts
await itd.posts.create(
{ content: 'секрет' },
{ extensions: { crypto: { encrypt: CipherName.Invisible } } },
);
// Обычная строка тоже допустима.
await itd.posts.create(
{ content: 'секрет' },
{ extensions: { crypto: { encrypt: 'invisible' } } },
);