From aa0790ec71c3bfb3ec593bfa08623947a2d18530 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Mon, 27 Feb 2023 01:52:30 -0800 Subject: [PATCH] Update example to match latest format --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d70c003..5c2f414 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ import decrypt from 'https://cdn.jsdelivr.net/gh/ardislu/static-encrypt/decrypt. 2. Pass the encrypted content string and the password to the `decrypt` function: ```javascript -const plaintext = await decrypt('jklWIe958BY3LLgf/RDePN4ThOTUCPwBkEf9uueZRO2g2nVWuk20webn+/HR14b2iJJnYCkzDT05f7qhsnx4Of98uu+T5/oinZsQI3o3mhvPmfIwVAdl2tq1V8cG', 'hunter2'); +const plaintext = await decrypt('ZE33hvS/TCP2pcI0SMp57SHYnxk+mB6u86y0IX9dJJAU7X7d77Wkg4h0iVlcgudL3HKtE8CDx++v90/Ic24Aq0YQgU1zzjuTHg==', 'hunter2'); ``` 3. The `decrypt` function will throw an error if the incorrect password is passed, or return the plaintext: -- 2.47.3