473,665 Members | 2,798 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9749
..oO(ph******** *******@gmail.c om)
>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.co m/<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.de wrote:
.oO(php.develop er2...@gmail.co m)
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.c om)
>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.de wrote:
.oO(php.develop er2...@gmail.co m)
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.c om)
>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.co m/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.Plea se 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.Plea se 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*******@attgl obal.net
=============== ===
Jun 27 '07 #8

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

Similar topics

10
111269
by: N | last post by:
What is the function in SQL that works like DECODE in Oracle?" Thanks, N
4
4899
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 appreciated. Regards.
0
3492
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 basic problem is the CASE has NOT condition i.e. <> ...... and this particularly i'm not able to convert in DECODE. Please send me the solution as early as possible.. I'm stuck up !!! I'm giving below the CASE statements and the DECODE...
1
35825
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, DECODE(B.ITEM_CODE,2, 'HAM_BURGERS') ITEM_DESCR, DECODE(B.ITEM_CODE,3, 'PIZZAS') ITEM_DESCR FROM STORE_DETAIL A, EMP_DETAIL B,
2
3416
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 script is described at http://www.paul.sladen.org/toys/samsung-yh-925/ I'm getting errors and hoping someone could give me some hints, for I have no python background.
8
5607
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 $passwd in mysql_insert. The password gets encrypted and stored in mysql. Now I want to check if the user has entered the correct password when he logs in. How can I do that. Any
2
3197
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 there perhaps other functions that implements this same functionality and generates a sha1 hash? Cheers.
1
2764
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 means gen, external reg means ext,acccident & emergency reg means AE.hear patient,invoice table have date column.but I have to display invoice date. that date no of gen reg, ext reg,ae reg not coming when joining two tables.gen reg, ext reg, AE reg i...
1
5770
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 example: answer_str = raw_input(' Enter answer ') Herr Üü
0
8438
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8348
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
7376
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6187
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4186
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4356
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2765
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2004
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1761
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.