@ko-developerhong/react-native-crypto-rsa
Version:
crypto library for rsa
17 lines • 627 B
TypeScript
declare class CryptoRsaClass {
private instance;
init(keySize?: number): Promise<{
publicKey: string;
privateKey?: string;
}>;
getPrivateKey(): Promise<string>;
getPublicKey(): Promise<string>;
encrypt(message: string, publicKey: string): Promise<string>;
decrypt(encryptBase64String: string): Promise<string>;
getSHA512Text(pemString: string): Promise<string>;
base64Decode(base64String: string): Promise<string>;
base64Encode(message: string): Promise<string>;
}
declare const RNCryptoRsa: CryptoRsaClass;
export default RNCryptoRsa;
//# sourceMappingURL=index.d.ts.map