r/JavaProgramming • u/Jakob_CF • Aug 27 '26
r/JavaProgramming • u/litllechimp • 18d ago
Help with java
Hello so im just a beginner in java, i started like two weeks ago the issue is that i want to learn more and i am kinda lost, is there a free way to code and become "a pro" in it ?
i tried watching youtube videos but they pratically talk about the same things i just need some roadmap or a bootcamp or a book something that could actually help me improve.
idk if anyone will see my publication but pls help a lost stranger in his journey as a new programmer
r/JavaProgramming • u/javinpaul • Feb 15 '26
I Tried 30+ Software Design Courses: Here Are My Top 5 Recommendations for 2026
r/JavaProgramming • u/javinpaul • Mar 06 '25
13 Must Read Books for Experienced Java Developers
r/JavaProgramming • u/starkk46 • Oct 14 '26
My Java Hello World Notes — Beginner Learning Journey ☕💻
I’m learning Java as a beginner, and I tried to make my first "Hello World" program easier to understand by breaking down each keyword with simple explanations.
I covered "public", "class", "static", "void", "main()", "String[] args", and "System.out.println()".
Instead of just memorizing the code, I want to understand why each part is used and how it works.
I’d love to hear feedback from experienced Java developers and fellow learners. What should I improve in these notes?
#Java #LearnProgramming #CodingForBeginners
r/JavaProgramming • u/jrkmk20268186 • Aug 19 '26
He canceled our third date last minute, should
Said something came up at work, apologized a lot, offered to reschedule right away. First two dates were genuinely great. Is one cancellation with a good excuse worth writing someone off or should I give it another shot?
r/JavaProgramming • u/scientecheasy • Jun 06 '26
Calling a Current Class Method Using the this Keyword
https://www.scientecheasy.com/2020/07/this-keyword-in-java.html/
We can use this keyword to invoke an instance method of the current class. When we do not specify an object reference variable to call an instance method, the Java compiler implicitly uses this to refer to the current object.
r/JavaProgramming • u/Fire_Fist494 • Jul 12 '26
Guys first post and want to know about java
So my new sem has started and this time, one of my new subject is java and I have no idea where to properly learn it form. Can anyone give me some suggestions, so that I could have my studies go smoothly
r/JavaProgramming • u/javinpaul • Aug 10 '26
I Read 20+ Core Java Books: Here Are My Top 5 Recommendations for Beginners
r/JavaProgramming • u/spiderman-1610 • May 10 '26
Java or Python
Hi ppl,
I'm 21, Working in an monitoring kind of role. I need to parallelly upskill myself and look for a switch. Java or Python, which one should I learn to become a full stack developer?
r/JavaProgramming • u/FishermanBig5765 • Jul 16 '26
Devs who work with legacy Java — what actually eats most of your time?
Hey all. I'm a CS student looking into the pain points around legacy Java codebases, specifically the "code archaeology" side: digging through old code with little to no documentation, figuring out what a piece of logic is even for before you dare touch it.
Just trying to understand the problem properly before building anything. Would really appreciate hearing from people who deal with this regularly:
What eats the most time when you're digging into unfamiliar legacy code?
How do you currently deal with it — any tools/tricks that actually help?
Has something ever broken because a piece of code turned out to be "magic" nobody fully understood?
Any answer helps, even a couple of sentences. Thanks in advance!
r/JavaProgramming • u/Substantial_Mess_548 • Jul 04 '25
Need urgent help in this
I am stuck in this error from 1 week and have tried everything please contact me
r/JavaProgramming • u/Ok-Phase2508 • May 28 '26
Java kha se padhu
Mere paas approx 1 hafta hai lekin mujhe java ke codes likhne sikhne koi 1 shot suggest kardu jisse cover ho jaaye sab
r/JavaProgramming • u/hippna_ • Aug 16 '24
Rat Unit Food Problem | JAVA | Beginner Friendly | Brute Force
r/JavaProgramming • u/[deleted] • Jun 25 '25
21f looking for female frnd to learn Java together
I’m learning Java from the basics and want a consistent, supportive friend or group who’s also on the same journey. I'm not looking for anything competitive — just someone to share doubts with, maybe solve problems together, cheer each other on, and talk about life too sometimes.
r/JavaProgramming • u/Lopsided_Bet_110 • Sep 11 '26
I need help with my work. Need a good Java Developer
I am working on TrackWise Report Extraction project.
But I am not able to solve the issue I am facing asked gpt, claude etc. Did not help.
Anyone who can help me in this pleaseeeeeee.
r/JavaProgramming • u/scientecheasy • May 22 '26
Top 30 Java Decision-Making Statements Quiz Questions to Test Your Knowledge
Solve the top 30 Java decision-making statements quiz questions and comment with your score. Definitely, you will enhance your knowledge with this quiz. So, can you score 30/30?
https://www.scientecheasy.com/2026/05/java-decision-making-statements-quiz.html/
r/JavaProgramming • u/javinpaul • Aug 16 '26
12 Programming Books Every Senior Developer Should Read
r/JavaProgramming • u/derangedandenraged • Oct 22 '25
Help
I don't get what I am doing wrong with this very basic task...
r/JavaProgramming • u/joshipurvang • Jun 26 '26
Are Legacy Java Systems the Biggest Obstacle to Enterprise AI Adoption?
reddit.comr/JavaProgramming • u/wmkm0113 • Apr 11 '25
It's surprising how data validation and encryption/decryption can be seamlessly integrated into a unified process.
During the process of program development, you often encounter operations that require data verification or data encryption and decryption. Traditional toolkits require the adjustment of development code for different verification or encryption and decryption algorithms. Now there is a brand-new data verification and data encryption and decryption tool that can use a unified interface to perform data verification and decryption operations, and can also support national secret algorithms. You can take a look together.
Various algorithms that you often encounter in daily life
Various algorithms are often used during software development to verify data, encrypt and decrypt data. There are many commonly used algorithms, each algorithm has its own characteristics and applicable scenarios. During the program development process, the appropriate algorithm can be selected according to different scenarios.
***The following are some common algorithms: ***
1. Symmetric key algorithm
Symmetric-key algorithm is also known as symmetric encryption, private key encryption, and shared key encryption. It is a type of encryption algorithm in cryptography. Such algorithms use the same key when encrypting and decrypting, or use two keys that can be simply calculated from each other. In fact, this set of keys becomes a common secret between two or more members to maintain exclusive communication connections. Compared with public key encryption, requiring both parties to get the same key is one of the main disadvantages of symmetric key encryption. Symmetric encryption is much faster than public key encryption, and symmetric encryption is required on many occasions.
Most modern symmetric key algorithms seem able to resist the threat of post-quantum cryptography. Quantum computers will exponentially increase the decoding speed of these cryptos; it is worth noting that the Grover algorithm shortens the time required for traditional brute-force cracking to a square root, although these vulnerabilities can be compensated by double the key length. For example, a 128-bit AES password will not be able to withstand such attacks, as it will reduce the time it takes to test all possible iterations from more than 1,000 Kyo-years (1019) to about six months. In contrast, the time it takes for quantum computers to decode 256-bit AES passwords is still the same as the time it takes for a conventional computer to decode 128-bit AES passwords. Therefore, AES-256 is considered to be "quantum resistant" (English: quantum resistant).
Common symmetric encryption algorithms are: AES (Advanced Encryption Standard), DES (Data Encryption Standard), TripleDES (3DES), Blowfish, RC4 (Rivest Cipher 4), etc.
2. Asymmetric key algorithm
Public-key cryptography, also known as Asymmetric cryptography, is a cryptography algorithm that requires two keys, one is a public key and the other is a private key; the public key is used as encryption, and the private key is used as decryption. The ciphertext obtained after encrypting the plaintext using a public key can only be decrypted with the corresponding private key and the original plaintext can be obtained. The public key originally used for encryption cannot be used as decryption. Since encryption and decryption require two different keys, it is called asymmetric encryption; unlike encryption and decryption, both use symmetric encryption with the same key. The public key can be made public and can be published arbitrarily; the private key cannot be made public and must be kept strictly in secret by the user. It will never be provided to anyone through any channel, nor will it be disclosed to the other party trusted to communicate with.
Based on the characteristics of public key encryption, it can also provide the function of digital signatures, allowing electronic files to achieve the effect of being signed by hand on paper documents.
The public key infrastructure is formed by trusting the root certificate of the digital certificate certification authority and its public key authentication using public key encryption for digital signature authentication, forming a trust chain architecture, which has been implemented in TLS and introduced in HTTPS on the World Wide Web with HTTPS and in SMTP on the email with SMTPS or STARTTLS.
On the other hand, the trust network adopts the concept of decentralization, replacing the public key infrastructure that relies on the digital certificate certification authority, because each electronic certificate is ultimately authorized by only one root certificate in the trust chain, and the public key of the trust network can accumulate the trust of multiple users. PGP is one example.
Common asymmetric key algorithms include: RSA and ECC (Elliptic Curve Cryptography).
3. Message digest algorithm
The message digest algorithm is a crucial branch of cryptography algorithm. It can calculate input data of any length to produce a pseudo-random result with a fixed length. The message digest algorithm does not require a key, and the result cannot be reversely obtained from the original data. It is often used for data signatures and verifying the integrity of data or files.
Common message digest algorithms include: CRC (cyclic redundancy check), MD series algorithms (including MD2, MD4, MD5), SHA algorithms (including SHA-1, SHA-2 series, SHA-3 series), MAC algorithms (including HmacMD5, HmacSHA, etc.).
In recent years, due to the rapid development of quantum computers, the MD series algorithms and SHA1 algorithms are no longer able to withstand the brute force cracking of quantum computers. They therefore have been slowly replaced by the SHA-2 series algorithms.
Data verification and data encryption and decryption tools using unified interface
A unified interface is provided in the toolkit org.nervousync.security.api.SecureAdapter, program developers can fill data through this interface and get calculation results and signature verification results.
**Computation data: **
Program developers can call org.nervousync.security.api.SecureAdapter instance object append The method performs data calculation and supports different parameter types such as strings, binary data, and binary buffers.
*** Parameters for filling strings: ***
| Parameter name | Data type | Notes |
|---|---|---|
| strIn | String | String to calculate |
*** Parameters for filling binary data: ***
| Parameter name | Data type | Notes |
|---|---|---|
| dataBytes | byte array | binary byte array to be calculated |
| position | int | Start coordinate value (optional parameters) |
| length | int | Calculated data length (optional parameters) |
*** Parameters for filling binary buffer: ***
| Parameter name | Data type | Notes |
|---|---|---|
| inBuffer | ByteBuffer | Binary buffer instance object that needs to be calculated |
**Get calculation results: **
Program developers can call org.nervousync.security.api.SecureAdapter instance object finish The method gets the data calculation result, and the return value is the binary byte array of the calculation result, supporting different parameter types such as strings, binary data, and binary buffers.
*** Parameters for filling strings: ***
| Parameter name | Data type | Notes |
|---|---|---|
| strIn | String | String to calculate |
*** Parameters for filling binary data: ***
| Parameter name | Data type | Notes |
|---|---|---|
| dataBytes | byte array | binary byte array to be calculated |
| position | int | Start coordinate value (optional parameters) |
| length | int | Calculated data length (optional parameters) |
*** Parameters for filling binary buffer: ***
| Parameter name | Data type | Notes |
|---|---|---|
| inBuffer | ByteBuffer | Binary buffer instance object that needs to be calculated |
**Verify signature: **
Program developers can call org.nervousync.security.api.SecureAdapter instance object verification The method gets the verification result. The passed parameters are digitally signed binary arrays, and the return value is a verification result with a Boolean value type.
**Clear calculated data: **
Program developers can call org.nervousync.security.api.SecureAdapter instance object reset Method clears calculated data and resets org.nervousync.security.api.SecureAdapter instance object.
**How to use: **
1. Depend on references
The latest version is 1.2.2. Please replace ${version} with the corresponding version number when using it. Maven:
<dependency>
<groupId>org.nervousync</groupId>
<artifactId>utils-jdk11</artifactId>
<version>${version}</version>
</dependency>Gradle:
Manual: compileOnly group: 'org.nervousync', name: 'utils-jdk11', version: '${version}'
Short: compileOnly 'org.nervousync:utils-jdk11:${version}'SBT:
libraryDependencies += "org.nervousync" % "utils-jdk11" % "${version}" % "provided"Ivy:
<dependency org="org.nervousync" name="utils-jdk11" rev="${version}"/>2.CRC operation
The default supported CRC algorithms are: CRC-16/ISO-IEC-14443-3-A, CRC-32/JAMCRC, CRC-4/INTERLAKEN, CRC-16/TELEDISK, CRC-32/MPEG-2, CRC-16/GSM, CRC-6/GSM, CRC-7/UMTS, CRC-32/BZIP2, CRC-8/I-CODE, CRC-16/IBM-SDLC, CRC- 16/LJ1200, CRC-10/ATM, CRC-8/NRSC-5, CRC-5/USB, CRC-7/ROHC, CRC-12/UMTS, CRC-8/BLUETOOTH, CRC-14/GSM, CRC-8/SMBUS, CRC-8/TECH-3250, CRC-5/G-704, CRC-16/MODBUS, CRC-12/DECT, CRC-7/MMC, CRC-16/ CMS, CRC-24/FLEXRAY-A, CRC-24/FLEXRAY-B, CRC-32/ISO-HDLC, CRC-21/CAN-FD, CRC-8/LTE, CRC-15/CAN, CRC-24/LTE-A, CRC-30/CDMA, CRC-3/GSM, CRC-24/LTE-B, CRC-24/OPENPGP, CRC-12/CDMA2000, CRC-16/M AXIM-DOW, CRC-16/XMODEM, CRC-6/G-704, CRC-24/OS-9, CRC-16/DNP, CRC-32/AIXM, CRC-10/CDMA2000, CRC-6/CDMA2000-A, CRC-6/CDMA2000-B, CRC-16/TMS37157, CRC-16/UMTS, CRC-32/XFER, CRC-8/ROHC, CRC-16 /DECT-R,CRC-8/WCDMA,CRC-8/DVB-S2,CRC-15/MPT1327,CRC-16/DECT-X,CRC-6/DARC,CRC-16/DDS-110,CRC-32/ISCSI,CRC-16/USB,CRC-8/MIFARE-MAD,CRC-8/AUTOSAR,CRC-16/KERMIT,CRC-16/IBM-3740,CRC -4/G-704,CRC-16/RIELLO,CRC-16/EN-13757,CRC-16/NRSC-5,CRC-14/DARC,CRC-31/PHILIPS,CRC-5/EPC-C1G2,CRC-32/BASE91-D,CRC-16/ARC,CRC-16/MCRF4XX,CRC-16/T10-DIF,CRC-24/INTERLAKEN,CRC-3/R OHC, CRC-13/BBC, CRC-11/UMTS, CRC-16/SPI-FUJITSU, CRC-10/GSM, CRC-8/DARC, CRC-8/OPENSAFETY, CRC-12/GSM, CRC-32/CKSUM, CRC-16/PROFIBUS, CRC-8/GSM-B, CRC-8/GSM-A, CRC-8/SAE-J1850, CRC-8/CDMA2 000, CRC-8/MAXIM-DOW, CRC-16/GENIBUS, CRC-8/I-432-1, CRC-17/CAN-FD, CRC-16/OPENSAFETY-B, CRC-32/CD-ROM-EDC, CRC-16/OPENSAFETY-A, CRC-32/AUTOSAR, CRC-16/CDMA2000, CRC-11/FLEXRAY, CRC-24/BLE
**Get registered CRC algorithm: **
Program developers can call org.nervousync.utils.SecurityUtils registeredCRC static method gets the registered CRC algorithm name list, the return value is java.util.List
**Register a new CRC algorithm: **
Program developers can call org.nervousync.utils.SecurityUtils registerConfig static method registers a new CRC algorithm.
*** Parameters of registerConfig method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| algorithm | string | CRC algorithm name |
| crcConfig | org.nervousync.security.digest.config.CRCConfig | CRC algorithm configuration information instance object |
**Get CRC algorithm configuration information: **
Program developers can call org.nervousync.utils.SecurityUtils crcConfig static method obtains registered CRC algorithm configuration information.
*** Parameters of the ***crcConfig method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| algorithm | string | CRC algorithm name |
**Get the adapter instance object that computes CRC: **
Program developers can call org.nervousync.utils.SecurityUtils CRC static method obtains the calculation adapter instance object, with the return value as org.nervousync.security.api.SecureAdapter instance object.
*** Parameters of CRC method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| algorithm | string | CRC algorithm name |
**Convert CRC result binary data to string: **
Program developers can call org.nervousync.utils.SecurityUtils The CRCResult static method converts the binary data of the CRC result into a string.
*** Parameters of ***CRCResult method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| algorithm | string | CRC algorithm name |
| result | Binary array | Binary data of CRC results |
3.MD5/HmacMD5 operation
** Directly calculate MD5 value: **
Program developers can call org.nervousync.utils.SecurityUtils MD5 static method gets the calculation result, and returns the binary data with the calculation result.
*** Parameters of MD5 method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| source | Java.lang.Object | An instance object that needs to calculate the MD5 value. If the type is File, the binary data of the file will be automatically read |
**Get the adapter instance object that calculates MD5: **
Program developers can call org.nervousync.utils.SecurityUtils The MD5 static method with no parameters in the getting the calculation adapter instance object, with the return value as org.nervousync.security.api.SecureAdapter instance object.
** Directly calculate HmacMD5 value: **
Program developers can call org.nervousync.utils.SecurityUtils The HmacMD5 static method gets the calculation result and returns the binary data with the calculation result.
*** Parameters of HmacMD5 method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| keyBytes | Binary array | HMAC key byte array |
| source | Java.lang.Object | An instance object that needs to calculate the MD5 value. If the type is File, the binary data of the file will be automatically read |
**Get the adapter instance object that calculates HmacMD5: **
Program developers can call org.nervousync.utils.SecurityUtils HmacMD5 static method obtains the calculation adapter instance object, the return value is org.nervousync.security.api.SecureAdapter instance object.
*** Parameters of HmacMD5 method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| keyBytes | Binary array | HMAC key byte array |
4.SHA1/HmacSHA1 operation
**Calculate SHA1 value directly: **
Program developers can call org.nervousync.utils.SecurityUtils SHA1 static method gets the calculation result, and returns the binary data with the calculation result.
***SHA1 method parameters: ***
| Parameter name | Data type | Notes |
|---|---|---|
| source | Java.lang.Object | An instance object that needs to calculate the SHA1 value. If the type is File, the binary data of the file will be automatically read |
**Get the adapter instance object that calculates SHA1: **
Program developers can call org.nervousync.utils.SecurityUtils The SHA1 static method with no parameters to get the calculation adapter instance object, with the return value as org.nervousync.security.api.SecureAdapter instance object.
** Directly calculate HmacSHA1 value: **
Program developers can call org.nervousync.utils.SecurityUtils The HmacSHA1 static method gets the calculation result and returns the binary data with the calculation result.
*** Parameters of HmacSHA1 method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| keyBytes | Binary array | HMAC key byte array |
| source | Java.lang.Object | An instance object that needs to calculate the HmacSHA1 value. If the type is File, the binary data of the file will be automatically read |
**Get the adapter instance object that calculates HmacSHA1: **
Program developers can call org.nervousync.utils.SecurityUtils HmacSHA1 static method gets the calculation adapter instance object, the return value is org.nervousync.security.api.SecureAdapter instance object.
*** Parameters of HmacSHA1 method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| keyBytes | Binary array | HMAC key byte array |
5.SHA2/HmacSHA2 operation
Algorithms for SHA2 series: SHA224, SHA256, SHA384, SHA512, SHA512_224, SHA512_256
** Directly calculate SHA2 value: **
Program developers can call org.nervousync.utils.SecurityUtils SHA224, SHA256, SHA384, SHA512, SHA512_224, SHA512_256 The static method gets the calculation result, and the return value is the binary data of the calculation result.
***SHA2 method parameters: ***
| Parameter name | Data type | Notes |
|---|---|---|
| source | Java.lang.Object | An instance object that needs to calculate the SHA2 value. If the type is File, the binary data of the file will be automatically read |
**Get the adapter instance object that computes SHA2: **
Program developers can call org.nervousync.utils.SecurityUtils SHA224, SHA256, SHA384, SHA512, SHA512_224, SHA512_256 with no parameters Static method to obtain the calculation adapter instance object, return value is org.nervousync.security.api.SecureAdapter instance object.
Algorithms of HmacSHA2 series: HmacSHA224, HmacSHA256, HmacSHA384, HmacSHA512, HmacSHA512_224, HmacSHA512_256
** Directly calculate HmacSHA2 value: **
Program developers can call org.nervousync.utils.SecurityUtils HmacSHA224, HmacSHA256, HmacSHA384, HmacSHA512, HmacSHA512_224, HmacSHA512_256 The static method gets the calculation result, and the return value is the binary data of the calculation result.
*** Parameters of HmacSHA2 method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| keyBytes | Binary array | HMAC key byte array |
| source | Java.lang.Object | An instance object that needs to calculate the HmacSHA2 value. If the type is File, the binary data of the file will be automatically read |
**Get the adapter instance object that calculates HmacSHA2: **
Program developers can call org.nervousync.utils.SecurityUtils HmacSHA224, HmacSHA256, HmacSHA384, HmacSHA512, HmacSHA512_224, HmacSHA512_256 Static method to get the calculation adapter instance object, return value is org.nervousync.security.api.SecureAdapter instance object.
*** Parameters of HmacSHA2 method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| keyBytes | Binary array | HMAC key byte array |
6.SHA3/HmacSHA3 operation
Algorithms for SHA3 series: SHA3_224, SHA3_256, SHA3_384, SHA3_512
** Directly calculate SHA3 value: **
Program developers can call org.nervousync.utils.SecurityUtils SHA3_224, SHA3_256, SHA3_384, SHA3_512 The static method gets the calculation result, and the return value is the binary data of the calculation result.
***SHA3 method parameters: ***
| Parameter name | Data type | Notes |
|---|---|---|
| source | Java.lang.Object | An instance object that needs to calculate SHA3 value. If the type is File, the binary data of the file will be automatically read |
**Get the adapter instance object that computes SHA3: **
Program developers can call org.nervousync.utils.SecurityUtils SHA3_224, SHA3_256, SHA3_384, SHA3_512 without parameters Static method to obtain the calculation adapter instance object, return value is org.nervousync.security.api.SecureAdapter instance object.
Algorithms of the HmacSHA3 series: HmacSHA3_224, HmacSHA3_256, HmacSHA3_384, HmacSHA3_512
** Directly calculate HmacSHA3 value: **
Program developers can call org.nervousync.utils.SecurityUtils HmacSHA3_224, HmacSHA3_256, HmacSHA3_384, HmacSHA3_512 The static method gets the calculation result, and the return value is the binary data of the calculation result.
*** Parameters of HmacSHA3 method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| keyBytes | Binary array | HMAC key byte array |
| source | Java.lang.Object | An instance object that needs to calculate the HmacSHA3 value. If the type is File, the binary data of the file will be automatically read |
**Get the adapter instance object that calculates HmacSHA3: **
Program developers can call org.nervousync.utils.SecurityUtils HmacSHA3_224, HmacSHA3_256, HmacSHA3_384, HmacSHA3_512 Static method to obtain the calculation adapter instance object, return value is org.nervousync.security.api.SecureAdapter instance object.
*** Parameters of HmacSHA3 method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| keyBytes | Binary array | HMAC key byte array |
7.SM3/HmacSM3 operation
**Calculate SM3 values directly: **
Program developers can call org.nervousync.utils.SecurityUtils SM3 static method gets the calculation result, and returns the binary data with the calculation result.
*** Parameters of SM3 method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| source | Java.lang.Object | An instance object that needs to calculate SM3 value. If the type is File, the binary data of the file will be automatically read |
**Get the adapter instance object that computes SM3: **
Program developers can call org.nervousync.utils.SecurityUtils The SM3 static method with no parameters gets the calculation adapter instance object, with the return value as org.nervousync.security.api.SecureAdapter instance object.
** Directly calculate HmacSM3 value: **
Program developers can call org.nervousync.utils.SecurityUtils The HmacSM3 static method gets the calculation result and returns the binary data with the calculation result.
*** Parameters of HmacSM3 method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| keyBytes | Binary array | HMAC key byte array |
| source | Java.lang.Object | An instance object that needs to calculate the HmacSM3 value. If the type is File, the binary data of the file will be automatically read |
**Get the adapter instance object that computes HmacSM3: **
Program developers can call org.nervousync.utils.SecurityUtils HmacSM3 static method obtains the calculation adapter instance object, the return value is org.nervousync.security.api.SecureAdapter instance object.
*** Parameters of HmacSM3 method: ***
| Parameter name | Data type | Notes |
|---|---|---|
| keyBytes | Binary array | HMAC key byte array |
8.SHAKE operation
** Directly calculate SHAKE128 value: **
Program developers can call org.nervousync.utils.SecurityUtils SHAKE128 The static method gets the calculation result and returns the binary data with the calculation result.
***SHAKE128 method parameters: ***
| Parameter name | Data type | Notes |
|---|---|---|
| source | Java.lang.Object | Instance object that needs to calculate SHAKE128 value. If the type is File, the binary data of the file will be automatically read |
**Get the adapter instance object that calculates SHAKE128: **
Program developers can call org.nervousync.utils.SecurityUtils The SHAKE128 static method with no parameters in the getting the calculation adapter instance object, with the return value as org.nervousync.security.api.SecureAdapter instance object.
** Directly calculate SHAKE256 value: **
Program developers can call org.nervousync.utils.SecurityUtils SHAKE256 The static method gets the calculation result and returns the binary data with the calculation result.
***SHAKE256 method parameters: ***
| Parameter name | Data type | Notes |
|---|---|---|
| source | Java.lang.Object | Instance object that needs to calculate SHAKE256 value. If the type is File, the binary data of the file will be automatically read |
**Get the adapter instance object that calculates SHAKE256: **
Program developers can call org.nervousync.utils.SecurityUtils The SHAKE128 static method with no parameters in the getting the calculation adapter instance object, with the return value as org.nervousync.security.api.SecureAdapter instance object.
r/JavaProgramming • u/java_coffeee • Aug 13 '25
Alguém para estudar Java comigo?
reddit.comr/JavaProgramming • u/theimp1923 • Oct 25 '25
Clever Lambda Tricks in Java: Smart, Fast, and Cleaner Code