Functions handling cryptography related tasks.