Outlook_Addin_LLM/node_modules/@microsoft/teamsfx-api/build/utils/crypto.d.ts

18 lines
464 B
TypeScript

import { Result } from "neverthrow";
import { FxError } from "../error";
/**
* Encrypt/decrypt secrets
*/
export interface CryptoProvider {
/**
* Encrypt string
* @param plaintext - original string
*/
encrypt(plaintext: string): Result<string, FxError>;
/**
* Decrypt cipher string
* @param ciphertext - encrypted string
*/
decrypt(ciphertext: string): Result<string, FxError>;
}
//# sourceMappingURL=crypto.d.ts.map