The encrypted password is converted to data URL in frontend/src/components/EncryptPassword/EncryptPassword.js. This slows down the experience when download image button is clicked. This process of converting the string to data URI can be done asynchronously after the encrypted password is fetched and stored in local storage. When download is clicked, it can be loaded from local storage, thus instantly downloading after the button is pressed.
The encrypted password is converted to data URL in
frontend/src/components/EncryptPassword/EncryptPassword.js
. This slows down the experience when download image button is clicked. This process of converting the string to data URI can be done asynchronously after the encrypted password is fetched and stored in local storage. When download is clicked, it can be loaded from local storage, thus instantly downloading after the button is pressed.