Commit Graph

40 Commits

Author SHA1 Message Date
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.
2023-09-24 14:55:52 +02:00
ce1c2322f0 Fixed issue with conflicting standards and custom implementation of
extended standard
2023-09-24 14:48:51 +02:00
9e96fdad7e More Testcases 2023-09-24 14:00:07 +02:00
30aca3702c Added new test case, for potential crash 2023-09-24 13:54:27 +02:00
55cdd506fb updated version 2023-07-17 15:32:36 +02:00
9791cfb0f8 Added MD5 tests 2023-07-17 15:32:01 +02:00
985a58c407 Added MD5 mac algotihm type for less security 2023-07-17 15:16:12 +02:00
5e2c7651ff Add MD5 mac algorithm type for less security 2023-07-17 15:15:42 +02:00
66c7e45597 Improve Spelling Mistake 2023-06-30 23:24:30 +02:00
8357137ee8 Improved docs for getPin 2023-06-30 23:22:34 +02:00
4acaf12869 Fixed spelling mistake 2023-06-30 23:20:10 +02:00
b5fa9e5f58 Add docs to the getPin Method 2023-06-30 23:19:09 +02:00
7fb6795d8c ⚠️⚠️ WARNING ⚠️⚠️ API CHANGE: Incremented Version Counter by 0.1 2023-06-30 23:10:28 +02:00
9f09a4c048 Tests run now :party: 2023-06-30 23:09:36 +02:00
d64ab8e17f Improved API, added checks, added tests; doesn't currently run tho 2023-06-30 23:04:05 +02:00
a2af6825f0 Add check if OTP secrets length is 0 and updated docs 2023-06-30 22:52:32 +02:00
6f3e7f1f5f incremented the version counter by 0.1 2023-06-30 22:43:20 +02:00
514741202b Increased the size of the git repository 2023-06-28 18:54:32 +02:00
23c3ae8ea6 WARNING: INTERFACE CHANGE IN PREVIOUS COMMIT 2023-06-28 17:02:35 +02:00
fb2923f761 Added requirements checks 2023-06-28 17:01:41 +02:00
806726d109 Made code workable for old Java Versions 2023-06-28 16:43:53 +02:00
291ecd6c7a update pom.xml yay 2023-06-25 23:17:21 +02:00
31fe53d3b8 Remove useless line of code 2023-06-25 23:16:29 +02:00
19de03f0f4 Update pom.xml and fixed a fatal bug with big token lenghts 2023-06-25 23:15:01 +02:00
75680b2e93 Added Time correction setting to OTP.java 2023-06-25 22:14:12 +02:00
ffd5350cb6 beautify the pom.xml 2023-06-22 21:26:09 +02:00
8ec7992f97 Added sauce code to build or sth like that 2023-06-22 21:16:18 +02:00
e0d0d6bc08 Added custom OTPException and InvalidBase32 Exception; removed a few
warnings
2023-06-18 23:05:15 +02:00
30a9ae1632 add documentation and fixed disagreement between docs and code 2023-06-18 22:49:39 +02:00
3542c7aed3 beautified HOTP tests; added maven surefire plugin for tests 2023-06-18 22:29:48 +02:00
39752b36ec tests for totp 2023-06-18 22:25:19 +02:00
1c286dd2f0 remove the testfiles to the gitignore 2023-06-18 22:11:29 +02:00
66e8b9b2ab added JUnit Tests to the project. 2023-06-18 22:09:56 +02:00
bb7c152cb9 HTOP works now (I think) 2023-06-18 21:35:01 +02:00
451b46e087 Add a base32 class; change secret default type to base32 encoded; tested
TOTP.java -> it works
2023-06-18 21:16:24 +02:00
def350d1da Added weird shit... idk if it works, Tests don't work yet 2023-06-17 17:07:19 +02:00
866f5aac0b upload a few more classes; implementation and interfaces may change in
the future
2023-06-16 23:07:16 +02:00
e67d371c19 update the OTPType enum 2023-06-16 22:15:32 +02:00
a93e8c1a27 Add Enum for different OTP types 2023-06-16 22:14:56 +02:00
f4a28966d3 Initial Upload 2023-06-16 22:02:09 +02:00