Decrypt and mount LUKS volume in GRUB rescue mode

How to decrypt and mount LUKS volume when you had a typo in your password

Decrypt and mount LUKS volume in GRUB rescue mode

I am running Arch Linux on my server with LUKS disc encryption. I do need to type in my password every time I reboot the machine. Sometimes I have a typo and this happens:

Welcome to GRUB!

Attempting to decrypt master key...
Enter passphrase for hd1,gpt2 (<disk uuid>):
error: access denied
error: no such cryptodisk found.
error: disk `cryptouuid/<disk uuid>` not found.
Entering rescue mode...

You can mount the partition with cryptomount:

cryptomount (hd1,gpt2)

Enter your password. Then load the module for a normal boot

insmod normal

Boot:

normal

Now you should get forwarded to the grub boot manager as you typed the password correct the first time.