Enter your master password to access your wallets, or browse + KristWeb as a guest.
+ + {/* Provide a username field for browser autofill */} +CryptoJS.AES
.
+ *
+ * Links:
+ * {@link https://wiki.openssl.org/index.php/EVP_Key_Derivation}
+ * {@link https://github.com/brix/crypto-js/blob/develop/src/evpkdf.js}
+ * {@link https://github.com/brix/crypto-js/blob/develop/src/cipher-core.js}
+ * {@link https://github.com/brix/crypto-js/blob/develop/src/aes.js}
+ *
+ * Implementation mostly sourced from:
+ * {@link https://stackoverflow.com/a/27250883/1499974}
+ * {@link https://stackoverflow.com/a/52598588/1499974}
+ * {@link https://stackoverflow.com/a/29152379/1499974}
+ *
+ * @param password - The bytes of the password used for key derivation.
+ * @param keySize - The number of bytes used for the key.
+ * @param ivSize - The number of bytes used for the IV.
+ * @param salt - The salt used for key derivation.
+ * @param iterations - The number of iterations used.
+ * @returns The key and IV (Uint8Array) derived from the password.
+ */
+async function evpKDF(password: Uint8Array, keySize: number, ivSize: number,
+ salt: Uint8Array, iterations: number): PromiseCryptoJS.AES.decrypt
.
+ *
+ * Links:
+ * {@link https://wiki.openssl.org/index.php/EVP_Key_Derivation}
+ * {@link https://github.com/brix/crypto-js/blob/develop/src/evpkdf.js}
+ * {@link https://github.com/brix/crypto-js/blob/develop/src/cipher-core.js}
+ * {@link https://github.com/brix/crypto-js/blob/develop/src/aes.js}
+ *
+ * Implementation mostly sourced from:
+ * {@link https://stackoverflow.com/a/27250883/1499974}
+ * {@link https://stackoverflow.com/a/52598588/1499974}
+ * {@link https://stackoverflow.com/a/29152379/1499974}
+ *
+ * @param encrypted - The base64-encoded encrypted data.
+ * @param password - The password used to decrypt the data.
+ * @returns The decrypted data.
+ */
+export async function decryptCryptoJS(encrypted: string, password: string): Promiseinput
.
+ */
+export async function sha256(input: string): Promisesha256(sha256(input))
.
+ *
+ * @param input - The input string to hash.
+ * @returns The double hexadecimal SHA-256 digest of input
.
+ */
+export async function doubleSHA256(input: string): Promise