Changing the algorithm when generating totp

In previous post, I showed with example how to generate an TOTP. I also mentioned in my previous post, how the framework by default using SHA-1 algorithm to generate the totp. In this post under OTP, I will show with example how to change the default algorithm. Below is the code for your reference. 1…… Continue reading Changing the algorithm when generating totp

Changing the algorithm when generating hotp

In previous post, I showed with example how to generate an HOTP. I also mentioned in my previous post, how the framework by default using SHA-1 algorithm to generate the otp. I this post under OTP, I will show with example how to change the default algorithm. Below is the code for your reference. Main…… Continue reading Changing the algorithm when generating hotp

Generating HOTP example

In this post I will show with example how to generate HOTP. I will be using open source otp framework written by “BastiaanJansen” using Java programming language. Below is the link to the GitHub project https://github.com/BastiaanJansen/otp-java HOTP is generated using two input parameters1) a secret2) a counter Below is the main method that shows how…… Continue reading Generating HOTP example