So, do you have more questions about the java code or is it more or less clear?

|
Jaschar 2022-07-02 13:22:39
Just to clarify.
I think that @R_r_F_BR and @martin_angelo have misunderstood each other in some way. HackerRank offers on the one hand, practice tasks for programming beginners and on the other hand, the possibility for companies looking for programmers to automatically ask interview questions from a random question catalog.

So Martin got here 3 random questions from the question catalog of HackerRank as interview questions and not the exercise tasks for programming beginners.

I would like to point out again , because one must differentiate here. In my opinion, the exercise tasks for programming beginners are very recommendable.

Jaschar 2022-07-02 13:24:04
That’s why I also shared them here under #tutorials.
Jaschar 2022-07-02 13:33:20
On the other hand, I don’t think it’s a good idea to use tools like HackerRank for interview questions. A company that does this gives me the impression that they don’t really value software developers. It just seems like they don’t really care if the hiring process works well.
Jaschar 2022-07-02 13:34:35
It now looks like the company where Martin participated in the coding interview has slowly come to the realization that maybe it wasn’t a good way to use HankerRank. I hope that the company learns from this that it is very important to take such interview questions seriously, because otherwise you can scare away very good and competent programmers. In such a case, a company shouldn’t be surprised if it can’t find suitable applicants because it filters them out through a bad application process.
JFCostta 2022-07-02 18:20:05
Jaschar 2022-07-02 13:34:35
It now looks like the company where Martin participated in the coding interview has slowly come to the realization that maybe it wasn’t a good way to use HankerRank. I hope that the company learns from this that it is very important to take such interview questions seriously, because otherwise you can scare away very good and competent programmers. In such a case, a company shouldn’t be surprised if it can’t find suitable applicants because it filters them out through a bad application process.

As usual, wise words, my friend!

Savungu22 2022-07-03 15:57:55
Boa tarde pessoal, espero que estejam todos bem.

Pessoal, preciso de uma ajuda muito importante, o meu professor mandou fazer um projecto de java e eu estive doente e não tive tempo de estar em sala de aulas para ampreder. Gostaria que quem poder me dar uma força o faça tenho que entregar um projeto. A seguir se segui a mensagem do professor:

Saudações meus caros..
O projecto será construído com os seguintes conteúdos:
Encapsulamento
Herança
Polimorfismo
Excepção( tratamento d erro)
Interface gráfica( tem mais penso)
Tema a vosso critério.. saludos 👊🏿

Savungu22 2022-07-03 16:01:07
Tenho que entregar até amanhã a noite
JFCostta 2022-07-03 17:23:14
Savungu22 2022-07-03 15:57:55
Boa tarde pessoal, espero que estejam todos bem.

Pessoal, preciso de uma ajuda muito importante, o meu professor mandou fazer um projecto de java e eu estive doente e não tive tempo de estar em sala de aulas para ampreder. Gostaria que quem poder me dar uma força o faça tenho que entregar um projeto. A seguir se segui a mensagem do professor:

Saudações meus caros..
O projecto será construído com os seguintes conteúdos:
Encapsulamento
Herança
Polimorfismo
Excepção( tratamento d erro)
Interface gráfica( tem mais penso)
Tema a vosso critério.. saludos 👊🏿

Hi. We don’t make homeworks in this group, post your specific question and probably someone will help you.
And please use English here.

Savungu22 2022-07-03 23:43:47
JFCostta 2022-07-03 17:23:14
Hi. We don’t make homeworks in this group, post your specific question and probably someone will help you.
And please use English here.

Good afternoon I have a project to do I need help. the project must involve: encapsulation Heritage Polymorphism Exception(error handling) Graphical interface (has more think)

martin_angelo 2022-07-04 06:39:23
Savungu22 2022-07-03 23:43:47
Good afternoon I have a project to do I need help. the project must involve: encapsulation Heritage Polymorphism Exception(error handling) Graphical interface (has more think)

Good evening. So, what is your question?

programadorx 2022-07-06 23:20:02
javaofficial-25340.jpg
hello can someone tell me what this java code does
JFCostta 2022-07-07 04:44:28
programadorx 2022-07-06 23:20:02
hello can someone tell me what this java code does

It looks like there’s an error, because objArray[0] is accessed and never used.
This function is encoding some piece of data into SHA-256 using bitwise operations. To be honest, this is not clear to me, it’s very low level bit handling.

martin_angelo 2022-07-07 08:43:26
programadorx 2022-07-06 23:20:02
hello can someone tell me what this java code does

objArry[0] is used when the variable „format“ is instantiated.
But I agree with @JFCostta, it seems to be some kind of encryption of the parameter of the function, the hash of the Auth key and some random data (the first for-loop. But the loop is unnecessary as the result is always the same). All these values are concatenated into one string, and this string is encrypted with SHA-256. Thereafter, the data seems to be encrypted again with a Boolean operation and an offset (256) but only the first digit of the result is saved in the string that gets returned (substring(1)).

From my understanding this code creates an encryption that is not reversible, because of this last part.

martin_angelo 2022-07-07 09:32:20
I was mistaken: In the last part, only the first digit/char is cut off. But I still don’t see, how the first digit/char is irrelevant for reversibility…
programadorx 2022-07-07 20:54:37
martin_angelo 2022-07-07 08:43:26
objArry[0] is used when the variable „format“ is instantiated.
But I agree with @JFCostta, it seems to be some kind of encryption of the parameter of the function, the hash of the Auth key and some random data (the first for-loop. But the loop is unnecessary as the result is always the same). All these values are concatenated into one string, and this string is encrypted with SHA-256. Thereafter, the data seems to be encrypted again with a Boolean operation and an offset (256) but only the first digit of the result is saved in the string that gets returned (substring(1)).

From my understanding this code creates an encryption that is not reversible, because of this last part.

i need to transcribe this function in php

programadorx 2022-07-07 21:04:19
martin_angelo 2022-07-07 09:32:20
I was mistaken: In the last part, only the first digit/char is cut off. But I still don’t see, how the first digit/char is irrelevant for reversibility…

this cryptographic function a license plate and turns it into a hash which is validated in the backend

martin_angelo 2022-07-07 22:03:34
programadorx 2022-07-07 20:54:37
i need to transcribe this function in php

Just out of curiousity: do you know the reason, why the first char during the last string concatination (StringBuffer) is cut of? To me it looks like an error…

martin_angelo 2022-07-07 22:04:37
programadorx 2022-07-07 20:54:37
i need to transcribe this function in php

so, do you have more questions about the java code or is it more or less clear? If you do have questions, place post the code again, but with line-numbers. Then it’s easier to refer to specific places in the code.

Jaschar 2022-07-07 23:35:30
#tutorials
https://testautomationu.applitools.com/

Test Automation University | ApplitoolsApplitools
Become a test automation superstar! 🌟
2022-07-17 11:41:31
javaofficial-25397.jpg
Hey Guys!!

Coding Ninjas has joined forces with the national-level council for technical education – AICTE (All India Council of Technical Education)

Join the showdown at ‘India Coding Championship’ (IICC).
The largest and one of its kind pan India programming championship for all engineering students across the country.

Join the event for:

✅ Most competitive prize pool
worth Rs 11 Lacs 🤑💰

✅ Placement & Internship
Opportunity at Top Tech Company ✈️🏢

✅ Exclusive certification
by AICTE 🏆🏅

✅ CN Scholarship
for all participants 💯😮

Registration CLOSES SOON
Join now

Register here:
https://bit.ly/3c4NYnT

Must share with your batchmates ✅

All the Best 👍

|