473,320 Members | 1,993 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to Decode a Sha1 url in Noramal Url

I want to know to decode sha1 encoded url into normal url.
Example
www.example.com/<sha1 code>/index1.htm

I want this to

www.example.com/index1.htm

Jun 25 '07 #1
7 9738
..oO(ph***************@gmail.com)
>I want to know to decode sha1 encoded url into normal url.
SHA is a hash algorithm. It can't be decoded.
>Example
www.example.com/<sha1 code>/index1.htm

I want this to

www.example.com/index1.htm
Do you want to decode something or just remove it?

Micha
Jun 25 '07 #2
On Jun 25, 10:37 pm, Michael Fesser <neti...@gmx.dewrote:
.oO(php.developer2...@gmail.com)
I want to know to decode sha1 encoded url into normal url.

SHA is a hash algorithm. It can't be decoded.
Example
www.example.com/<sha1 code>/index1.htm
I want this to
www.example.com/index1.htm

Do you want to decode something or just remove it?

Micha
Basicly i want to remove this sha1 code from the link and access
index1.htm file.Help me if you can please.

Jun 26 '07 #3
..oO(ph***************@gmail.com)
>Basicly i want to remove this sha1 code from the link and access
index1.htm file.Help me if you can please.
Have a look at string functions (strpos() and substr_replace() might be
helpful, if it's really a SHA1 hash with a fixed length) or a regular
expression and preg_replace().

Micha
Jun 26 '07 #4
On Jun 26, 6:59 pm, Michael Fesser <neti...@gmx.dewrote:
.oO(php.developer2...@gmail.com)
Basicly i want to remove this sha1 code from the link and access
index1.htm file.Help me if you can please.

Have a look at string functions (strpos() and substr_replace() might be
helpful, if it's really a SHA1 hash with a fixed length) or a regular
expression and preg_replace().

Micha
I not want to use php.Just if some user paste this link in the browser
than the page need to be displayed without using php.Sha1 Need to be
removed from the link.This sha1 is generated by my website for
security.

Jun 26 '07 #5
..oO(ph***************@gmail.com)
>I not want to use php.
This is a PHP newsgroup.
>Just if some user paste this link in the browser
In the address bar?
>than the page need to be displayed without using php.Sha1 Need to be
removed from the link.This sha1 is generated by my website for
security.
So you want the server to redirect <www.example.com/[sha1 code]/footo
<www.example.com/foo>? That would be something for Apache's mod_rewrite.

It's a bit confusing ...

Micha
Jun 26 '07 #6
Is there any technique which we use such as openssl,Digital
signatures.Please help if you know anything about it.

Jun 26 '07 #7
ph***************@gmail.com wrote:
Is there any technique which we use such as openssl,Digital
signatures.Please help if you know anything about it.
I'm with the rest of the people here. I don't understand exactly what
you're trying to do.

As Michael indicated, if you only want to remove the sha1, then you
should be using Apache's mod_rewrite.

And as he also indicated - if you don't want a PHP answer, don't ask in
a PHP newsgroup!

So what does openssl, Digital signatures, etc. have to do with this?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 27 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: N | last post by:
What is the function in SQL that works like DECODE in Oracle?" Thanks, N
4
by: Newbie | last post by:
How would I modify this form to encode *all* the characters in the 'source' textarea to the '%xx' format & place result code into the 'output' textarea? (cross browser compatable) Any help is...
0
by: richasaraf | last post by:
Hello everyone, Please HELP !!!!! I'm facing problem in converting CASE statements into DECODE. As i have PL/SQL 8i, so it does not handle CASE statements. Please send me the solutions . Then...
1
by: MP | last post by:
I have the following command. SELECT A.STORE_NAME, A.STORE_NUM, A.ZIP_CODE, B.EMPLOYEE_ID, B.GENDER, B.EMP_LEVEL, C.ITEM_CODE, DECODE(B.ITEM_CODE,1, 'CHICK_BURGERS') ITEM_DESCR,...
2
by: rsd | last post by:
Hi, I'm trying get Samsung YH-920 mp3 player to work with Debian GNU/Linux. To do that I need to run http://www.paul.sladen.org/toys/samsung-yh-925/yh-925-db-0.1.py script, the idea behind the...
8
by: sathyashrayan | last post by:
Dear group, For a log-in page I have created a mysql db and user registers with a user name and password. The password field is encrypted with $passwd = sha1($_REQUEST); I insert the...
2
by: amygdala | last post by:
Hi, Does anybody now of a custom crypt function that implements sha1? The thing I like about crypt is that I don't have to worry about (re)generating salt when querying the database. Or are...
1
by: dande | last post by:
my problem is I have used invoice table, patient table.In Invoice table date,cash,credit, cheque,advance,total is coming.but in patient table having registration type code having gen registraion...
1
by: anonymous | last post by:
1 Objective to write little programs to help me learn German. See code after numbered comments. //Thanks in advance for any direction or suggestions. tk 2 Want keyboard answer input, for...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.