Commit Graph

  • 46acdedb8b
    Add OTP#getNextPin(), clean up code master MrLetsplay 2024-09-07 19:48:16 +0200
  • 1896eef707 Incremented Version Count. Basically the issue was, that the standard for HOTP only specified the use of SHA-1 as an algorithm for the OTP and HOTP added the use of SHA-256 and SHA-512, which had a longer and different output length. MD5 on the other hand only uses 128 bytes of output, which could sometimes cause an IndexOutOfBounds Exception, when trying to read the last 4 bytes starting at byte 15. (Byte 16, 17 and 18 are outside the array bounds). Since the standard does not specify how to implement the algorithm using MD5, the best solution was to change the size of the array, instead of looping while fetching the values at the indices. This is because the specification is very clear about how to fetch the values: The Indices shall not loop, but rather just increment. Since this is not standard conforming, we can only hope, that this is compatible with other implementations, that feature MD5. 1.6 TheArrayser 2023-09-24 14:55:52 +0200
  • ce1c2322f0 Fixed issue with conflicting standards and custom implementation of extended standard TheArrayser 2023-09-24 14:48:51 +0200
  • 9e96fdad7e More Testcases TheArrayser 2023-09-24 14:00:07 +0200
  • 30aca3702c Added new test case, for potential crash TheArrayser 2023-09-24 13:54:27 +0200
  • 55cdd506fb updated version TheArrayser 2023-07-17 15:32:36 +0200
  • 9791cfb0f8 Added MD5 tests TheArrayser 2023-07-17 15:32:01 +0200
  • 985a58c407 Added MD5 mac algotihm type for less security TheArrayser 2023-07-17 15:16:12 +0200
  • 5e2c7651ff Add MD5 mac algorithm type for less security TheArrayser 2023-07-17 15:15:42 +0200
  • 66c7e45597 Improve Spelling Mistake TheArrayser 2023-06-30 23:24:30 +0200
  • 8357137ee8 Improved docs for getPin TheArrayser 2023-06-30 23:22:34 +0200
  • 4acaf12869 Fixed spelling mistake TheArrayser 2023-06-30 23:20:10 +0200
  • b5fa9e5f58 Add docs to the getPin Method TheArrayser 2023-06-30 23:19:09 +0200
  • 7fb6795d8c ⚠️⚠️ WARNING ⚠️⚠️ API CHANGE: Incremented Version Counter by 0.1 TheArrayser 2023-06-30 23:10:28 +0200
  • 9f09a4c048 Tests run now :party: TheArrayser 2023-06-30 23:09:36 +0200
  • d64ab8e17f Improved API, added checks, added tests; doesn't currently run tho TheArrayser 2023-06-30 23:04:05 +0200
  • a2af6825f0 Add check if OTP secrets length is 0 and updated docs TheArrayser 2023-06-30 22:52:32 +0200
  • 6f3e7f1f5f incremented the version counter by 0.1 TheArrayser 2023-06-30 22:43:20 +0200
  • 514741202b Increased the size of the git repository TheArrayser 2023-06-28 18:54:32 +0200
  • 23c3ae8ea6 WARNING: INTERFACE CHANGE IN PREVIOUS COMMIT TheArrayser 2023-06-28 17:02:35 +0200
  • fb2923f761 Added requirements checks TheArrayser 2023-06-28 17:01:41 +0200
  • 806726d109 Made code workable for old Java Versions TheArrayser 2023-06-28 16:43:53 +0200
  • 291ecd6c7a update pom.xml yay TheArrayser 2023-06-25 23:17:21 +0200
  • 31fe53d3b8 Remove useless line of code TheArrayser 2023-06-25 23:16:29 +0200
  • 19de03f0f4 Update pom.xml and fixed a fatal bug with big token lenghts TheArrayser 2023-06-25 23:15:01 +0200
  • 75680b2e93 Added Time correction setting to OTP.java TheArrayser 2023-06-25 22:14:12 +0200
  • ffd5350cb6 beautify the pom.xml TheArrayser 2023-06-22 21:26:09 +0200
  • 8ec7992f97 Added sauce code to build or sth like that TheArrayser 2023-06-22 21:16:18 +0200
  • e0d0d6bc08 Added custom OTPException and InvalidBase32 Exception; removed a few warnings TheArrayser 2023-06-18 23:05:15 +0200
  • 30a9ae1632 add documentation and fixed disagreement between docs and code TheArrayser 2023-06-18 22:49:39 +0200
  • 3542c7aed3 beautified HOTP tests; added maven surefire plugin for tests TheArrayser 2023-06-18 22:29:48 +0200
  • 39752b36ec tests for totp TheArrayser 2023-06-18 22:25:19 +0200
  • 1c286dd2f0 remove the testfiles to the gitignore TheArrayser 2023-06-18 22:11:29 +0200
  • 66e8b9b2ab added JUnit Tests to the project. TheArrayser 2023-06-18 22:09:56 +0200
  • bb7c152cb9 HTOP works now (I think) TheArrayser 2023-06-18 21:35:01 +0200
  • 451b46e087 Add a base32 class; change secret default type to base32 encoded; tested TOTP.java -> it works TheArrayser 2023-06-18 21:16:24 +0200
  • def350d1da Added weird shit... idk if it works, Tests don't work yet TheArrayser 2023-06-17 17:07:19 +0200
  • 866f5aac0b upload a few more classes; implementation and interfaces may change in the future TheArrayser 2023-06-16 23:07:16 +0200
  • e67d371c19 update the OTPType enum TheArrayser 2023-06-16 22:15:32 +0200
  • a93e8c1a27 Add Enum for different OTP types TheArrayser 2023-06-16 22:14:56 +0200
  • f4a28966d3 Initial Upload TheArrayser 2023-06-16 22:02:09 +0200