R Amlani

Greenhorn
+ Follow
since May 09, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by R Amlani

Hi James,

I tried to hash in that way and it worked. I'm really thankful to you sir. Actually it was mistake from the client's documentation.
Now I'll be careful with this kind of issues.

Thanks again.

13 years ago
please give me some hint that how can I get this output (like the example I've given above). As I dont have any requirement specification. I just know that in PHP it can be done using this two lines,
13 years ago
Ok...now see my this attempt.

I'm giving bytes to the input of base 64. And for base 64 I've written this line of code.


Now, have a look on this code..


And I'm getting the output = "VsIgGpx6Tq6vNmRyTUK2eLENA85z5ecqUm1F8dqlPZc=" while my required result is "dL7Y8OuzWaxtQJj33gKqEO1rL2diYdurxAM2o//2TRI="

And Previously it was my mistake in giving the input to base64.My sincere apology for that.
13 years ago
I also tried to convert it into string using UTF-8 and then gave it to base64 but still not getting proper/desired output.

Please help me out.
13 years ago
Hi James,

Thanks for replying. But I've already tried out this solution and I also compared the values.

--> Now, I just got more info that the output which I got, need to be given as an input of the base 64 and I must get the output = "dL7Y8OuzWaxtQJj33gKqEO1rL2diYdurxAM2o//2TRI="
(for the input which I've described in que.)

and currently I am getting "W0JAOTExZjcx".
13 years ago
Hi All,

Before few days I got a requirement from a client to form one url to call one webservice. One of the params was to be processed by sha256 and base 64.

--> the prior requirement was to give stringToBeHashed and key as input params. I set this two params for the input of sha256 method. It was working fine, I also checked my code with online converters also.

--> Now the problem is that he wants the output data in raw binary output format about which I don't know. As per his instruction and my info this is the only one line code in PHP as following :



Let me also give you example of output he wants.
stringToBeHashed --> ABCDEF
key --> 123
output --> t����Y�m@�����k/gba۫�6���M (this is what I want to get)

And what I'm and all tools are getting is --> 56c2201a9c7a4eaeaf3664724d42b678b10d03ce73e5e72a526d45f1daa53d97


the code which currently I use is,



will any one can help me out to solve this ?
13 years ago