How To Encrypt The Url In A Mathematical Approach

Aug 25, 2010

I am looking into the possibility of shortening / encrypting a url which will be from 150 to 250 characters in length to maximum 12 characters using an algorithm. Initially I am doubting it's possible but I wanted to leverage the great minds of StackOverflow :)

the algorithm should be one that can be written in classic asp, sql, c#, vb, or foxpro or other language.

Is that even possible without a database centric approach?

I was reading here that AES in CFB mode, will do a stream cipher and the output length will be the same as the input length. Is there any way to shorten it even more?

View 4 Replies


Similar Messages:

Web Forms :: A Good MVC Approach To Encrypt Password?

Feb 22, 2011

I have the following requirement:

- During client registration, the password must be client side encrypted with SHA1 algorithm and stored in the DB

I have done that before using javascript on the client side. But it was a non MVC web app. I know I can use js again, but I'm trying to find a better approach.Using https or not is not depending on our development side, so we can not change the requirement.

View 1 Replies

How To Use Mathematical Symbols In Application

Jan 10, 2011

IS it possible to use mathematical symbols in asp.net application.

I am developing a online assessment web application. In that I need to use mathematical sysmbols as question and the user also should be able to use that symbols.

Is it possible? Is any other third party editor is required?

Can I store that symbols into MS SQL database?

View 2 Replies

Converting Strings For Mathematical Calculations?

Jul 15, 2010

I'm new to .NET and converting and proper way to convert strings to other values. Specifically, here is a situation I'm facing:

I'm returning two values from a datasource as strings. One values is a representation of a span of time, and another is a count of how many attempts to access a system took place within the span of time.

Given these parameters (for example):

Span of time: 00:01:00
Attempts: 13

I'd like to calculate a third value that shows how many seconds each attempt to connect took place during that span of time. This involves converting the time span to seconds and then dividing by attempts. Where I am getting lost is with the conversion of types. I know the span of time needs to be converted to a date, reduced to seconds, then converted to a number to be divided by the attempts field, also converted to a number.

I've been playing around with code segments like this all morning to no avail:

VBNET Code:
Dim thisTime As String = "00:01:00"
Dim thisAttempts As String = "13"
Label1.Text = thisTime
Label2.Text = thisAttempts
Label3.Text = Math.Round(Integer.Parse(Convert.ToDateTime(Label1.Text)) / Integer.Parse(Label2.Text), 2)

View 2 Replies

How To Add Mathematical Formula Editor To Website

Dec 13, 2010

Any open source javascript mathematical formula editor to recommend? I want to add mathematical formula editor to my web site, so that when people submit message using text box, they can insert related mathematical formula.

BTW: I am using VSTS 2010 + C# + .Net 4.0 + ASP.Net + IIS 7.0, any such controls provided by MSFT?

View 3 Replies

How To Create An Editor For Mathematical And Sceintific Equations

May 27, 2010

I want to create an editor for mathematical and Sceintific Equations.

My clients requirement is that he wants to set the Exam for students and need an editor for all mathematical and Scientific equations.

View 2 Replies

MVC :: To Perform Mathematical Operations Within A .aspx View?

Jan 14, 2011

Is it possible to perform mathematical operations within a .aspx View.? for example..lets say i have a total number of pencils of say 100. and i have 12 students on a data table with his or her name, and the number of pencils she has

Student Name: Pencil #

John 10

Sarah 12

Linus 19

But while rendering the view i want to calculate the Percentage of pencils one student possesses out of the total. (John would have 10% of the total 100 pencils)

How would i just perform this basic math operation, and encode the result into the view. I know i need to store the 100, and divide by each count of pencils for each student within the foreach loop. but i keep getting 0. This seems very elementary i know.. Help would be very appreciated. Google seems to have nothing for me.

View 3 Replies

Web Forms :: Need Mathematical Captcha Image Verification

Sep 15, 2012

how you have implemented mathematics type captcha in comments sections in URL...I like to implement this type of captcha security, its more clean and user friendly.

View 1 Replies

Forms Data Controls :: Perform Mathematical Equation On A Field?

Mar 17, 2010

Is there a way to perform a mathematical equation on a field which has been EVAL'd in a gridview?

[Code]....

View 3 Replies

Architecture :: Showing Mathematical Formula Based Charts To End User?

Jun 3, 2010

We have one new project to implement. Let me explain briefly about this project. This project is related showing chart to end user on the basis of different mathematical calculated formulas.

End user has authority to change these formulas on the fly and on the basis of that changed formula we need to show the chart. So this is all central idea about the project. These charts which I mentioned above are very complicated and user friendly

So can any buddy tell me which is best suitable architecture for this and how can fit her to my scenario .I knows, three tier architecture and some other are there but I want know which is the best architectures that developed above idea in right way

View 3 Replies

Forms Data Controls :: How To Update A Gridview Footer With A Mathematical Operation

Jan 12, 2011

I have two textBox, one button and one gridview. In one texbox, I enter a value, click the button to add this entry to the gridview and the footer is computing the sum as i add more entries to the gridview.

I also have a textbox outside the gridview that will hold an amount, now I want to perform an operation like...(txtOutsideGridview - gridviewEntry1 - gridviewEntry2), and display the result of this operation inside the footer of the gridview, instead of the sum. How do I go about doing this?

So far all I have been able to do is sum up the total of entries within the Gridview, but that is not my desired operation...here is what my current code looks like

[Code]....

View 2 Replies

MVC :: What Is The Best Approach To One To Many Relationships

Aug 5, 2010

What is the best approach to one to many relationships?

This is my scenario:

I have a simple one to many relation:

Customer
CustomerID
Name
tel
CustomerNotes
Id
Note
customerID

I want to have a DETAIL view of customers and CREATE view for CustomerNotes all in the same page.

I create CustomerController and the different views and its respective actions for edit, create, delete, etc.

I also create a CustomerNotesController and the views and actions like before, but I made the views PARTIALS

I put a RENDERPARTIAL for the CustomerNotes create view in the Details view from Customer.

When I run the app, the page is render as expected: It shows the detail info of the customer and bellow the create form for the notes. However, when I click SAVE, nothing happens. I put a breakpoint in the notes controller and never get hit.

I also try with RenderAction and don't work at all.

View 4 Replies

DDD Approach Be Used With NHibernate?

Nov 12, 2010

I've been reading up on DDD a little bit, and I am confused how this would fit in when using an ORM like NHibernate. Right now I have a .NET MVC application with fairly "fat" controllers, and I'm trying to figure out how best to fix that. Moving this business logic into the model layer would be the best way to do this, but I am unsure how one would do that.

My application is set up so that NHibernate's session is managed by an HttpModule (gets session / transaction out of my way), which is used by repositories that return the entity objects (Think S#arp arch... turns out a really duplicated a lot of their functionality in this). These repositories are used by DataServices, which right now are just wrappers around the Repositories (one-to-one mapping between them, e.g. UserDataService takes a UserRepository, or actually a Repository). These DataServices right now only ensure that data annotations decorating the entity classes are checked when saving / updating.

In this way, my entities are really just data objects, but do not contain any real logic. While I could put some things in the entity classes (e.g. an "Approve" method), when that action needs to do something like sending an e-mail, or touching other non-related objects, or, for instance, checking to see if there are any users that have the same e-mail before approving, etc., then the entity would need access to other repositories, etc. Injecting these with an IoC wouldn't work with NHibernate, so you'd have to use a factory pattern I'm assuming to get these. I don't see how you would mock those in tests though......................

View 3 Replies

C# - Looking For Right Approach To Develop A CMS Application?

Oct 25, 2010

I am developing a CMS application. Its a very huge deep and with full of configurable features. Current, I am developing it using Asp.net C#, form authentication and by creating UserControls.

There are lot of configurable items need to decide at run time as per user roles and some rules are predefined and some will be defined by Admin at runtime. The all information is stored in DB. I am getting lot of issues with USerControls. I consulted with some other guys who told my approach is wrong, I should go through DB data fetching. I really don't understand what is it? It is something like my all pages will be stores in Database and will construct at runtime and display as per rights?

View 2 Replies

Best Architecture/Technology Approach In C#

Dec 14, 2010

I was planning to utilize MVP, DDD, TDD, IOC, Dependency Injection, Repository , StructureMap etc but the timeframe is very tight and this can also be achieved in n -tiered architecture:

Technology:

Client Web Portal

ASP.Net /C#/SQL Server

Project Specification:

5 types of customers
Template of service
Dynamic Data Driven portal
Modules can be activated/deactivated through management console
Branding and customization
Rapid deployment portals of future clients as well
Portals willallow for customization
Data reporting services: reports and
BOBJ Ad hoc Query
Value- Add services to the clients
portal
Each Clients welcome page can be
customized by client as well
How can I determine which Client is
on "Welcome" page without them
logging in? Create different URLS for
each client base? how?
Mobile Application services
Localization
Demo portal should be built and sent
to client for testing rapidly

Database structure:

There will be core database which will be connected to 50-60 client databases depending on the login and other details.

What is the best approach in terms of data layer? since dynamic db connections will have to be implemented?

View 5 Replies

Best Approach For GOOGLE MAP In Website. .NET C#

Mar 25, 2010

Do you guys know a good website or a good tutorial to manage this.

View 4 Replies

Best Approach To Implement Reusable SortedList?

May 8, 2010

I have a situation where I need to maintain a large number of related integer values in my ASP.Net 3.5 application. The SortedList seems perfect for this purpose. If this were a Windows app I'd just create a class and setup one method to Set values within the SortedList and another one to Get values out of it.

But being a web app, I'm not entirely sure of the best approach to use. Sure, I could just create one method for Set and another for Get but that doesn't seem very "clean".I thought about creating a UserControl without any visual elements but am not sure if that makes sense.How would you go about implementing such a SortedList in your web app?

View 7 Replies

Web Forms :: Implement Wizard - Best Approach?

Oct 1, 2010

I am looking to implement a Wizard for my Web Form, please could somebody give me suggestions as to which approach would be best jQuery or ASP.NET Wizard control? give links describing the implementation, if possible.

View 1 Replies

Best Approach To Provide Technical Documentation

Dec 21, 2010

I landed on a job to continue working on exisiting asp.net 3.5 application using Visual Studio 2008. The former .net developer is no longer around and I have to dig into the application code to understand how the app works( workflow, logic, etc...)I have added new development to the existing application and enhanced existing pages. Now, I need to provide Technical documentation for the application so any new developer comes onboard will not struggle enhancing the app or do new development following the same methodology . Q1. What is the best approach to provide technical documentation.I thought of the following

View 1 Replies

Best Approach For Deploying An .Net Website To A Web Form?

Feb 10, 2011

We need to deploy our asp.net web site in web farm which consists of 16 web servers. Whenever we need to roll out a new release it is very time consuming and tedious as we need to deploy it first on the DR environment (16 web servers) and then on to Live environment (16 web servers). Currently we prepare the msi on our build server and copy it on all the front end web servers which involves first FTPing the msi to a common location on hosting network and then copying from the common location to each server.
After thet we backup the existing website and then run the installer one by one on each machine

View 1 Replies

Best Approach To Authenticate The Client Certificate?

Jun 25, 2010

I have hosted a secure WCF service on cloud with a certificate created by makecert.

Now I want to restrict the access to the service by allowing only those clients who have the certificate generated by me.

What is the best approach to implement this

* Shall I go with the changes in the configuration file
* Or Shall I write the code to validate this in the service
* Is there any other alternative?

View 1 Replies

The Best Approach To Avoid Error Message ?

Jan 7, 2011

I do have a log system and the correct error is well explicit there, but I want to give a better message to the user.

I keep trying several ways but I'm using Telerik components and well jQuery and I ended up using both ASP.NET Ajax methods and jQuery, so I use

function pageLoad() {

try { [code]....


as well$(document).ready(function() { ... }

that alert(err) is never fired even upon OnClick events

what's the best approach to avoid this message errors and provide a cleaner way?

all this happens in <asp:UpdatePanel> as I use that when I didn't know better (3 years ago!) and I really don't want to mess up and build all again from scratch

Updated with more error windows after volpav solution

View 3 Replies

Architecture :: What Is The Approach / Calculate: BL Versus DB

Dec 29, 2010

What is the approach? calc: BL vs. DB?

Using Asp.net3.5/ sql2005.

What is the approach? What should calculate in the database and what to implement in the business lyre??

If I will calculate in the db - I will have less round trips and less resources on the server side host - but less flexible programmatically side..

When to use object oriented programming and when to implement the calculation on database - when what I am looking for is first performance.

View 12 Replies

ADO.NET :: Which Is Best Approach For Designing Data Layer

Mar 3, 2011

I'm designing a mid sized business app in asp.net / c# Framework:4.0 environment.

I'm just wondering which is the best approach for designing data access layer.

Candidates designs are:

1. ADO.Net

2. LINQ using sps or LINQ with Entities

3. Hibernate object model

View 2 Replies

C# - Best Approach To Handle Session Timeouts?

Jul 22, 2010

There are various ways to handle session timeouts, like "meta refreshes" javascript on load functions etc.

I would like something neat like: 5 minutes before timeout, warn the user...

I am also contemplating keeping the session open for as long as the browser is open(still need to figure out how to do it though... probably some iframe with refreshing).

How do you handle session timeouts, and what direction do you think i should go in?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved