Java program to generate 6-integer one-time password using sha-2 hash function