public static OTP generateOTP(byte[] secret, String algo, int digits, long period, long seconds)
            throws InvalidKeyException, NoSuchAlgorithmException {
        long counter = (long) Math.floor((double) seconds / period);
        return HOTP.generateOTP(secret, algo, digits, counter);
    }
@Test
    public void vectorsMatch() throws NoSuchAlgorithmException, InvalidKeyException {
        for (Vector vector : VECTORS) {
            byte[] seed = getSeed(vector.Algo);
            OTP otp = TOTP.generateOTP(seed, vector.Algo, 8, 30, vector.Time);
            assertEquals(vector.OTP, otp.toString());
        }
    }