@itd-api/crypto / CipherName
Variable: CipherName
ts
const CipherName: Readonly<{
BeeCrypt: "beecrypt";
Invisible: "invisible";
}>;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' } } },
);