client-side-scripting

Client side encryption Django

时光总嘲笑我的痴心妄想 提交于 2020-01-05 04:32:08
问题 I just finished an app and, for safety reasons, I would like the content of some fields of the db to be readable only by the user. This involves client side encryption and I think that I found a decent pure js implementation. Typically, I would go for an AES 256 CBC using parts of the user's password hash (client side computation) as key an vi (stored somehow) to feed the encrypt and decrypt functions. Here comes the thing . The decryption is pretty straightforward. Spontaneously, I would

Handling RadioButtonList with client-side scripting

风格不统一 提交于 2020-01-03 02:46:09
问题 I have an ASP RadioButtonList that I want to handle client-side. The web page contains a form with a radio button group and an associated GridView. When the user selects one of the radio buttons, I want to hide or show rows on the GridView. (The rows must be hidden, as opposed to filtered out of the dataset via postback, because of processing that takes place when the user submits the form.) Thanks to StOf and other sites, here's what I have so far. My client-side script errors out by failing

Authenticate Windows Authentication using Javascript

不羁的心 提交于 2019-12-12 02:22:50
问题 I have to transfer my client from one website to another website. This happens in client side. In this 2nd website, its using windows basic authentication system. So It popups the login window. I need to omit this Popup window and authenticate my client on 2nd website using javascript and then redirect him to 2nd website. There is no security issue even I put credentials in javascript file since this whole system is running in Intranet. So How to authenticate client on 2nd website ? I found

ECC with SJCL , generate a key that expires automatically

允我心安 提交于 2019-12-12 01:38:44
问题 i have already asked a little similar question here but i am asking it in a different way and a little change. now my question is. is it possible to have a public key on the server side through which i can encrypt the message and have a private key on the client side with which i can decrypt the message , and this private key must be expire automatically after a given period of time (or must be so secured may be in some other way)? so is possible? and if yes, how? provided that i am using

How to change input field switch sequence (swithcing input field using Tab key) on a web page?

↘锁芯ラ 提交于 2019-12-08 12:55:55
问题 On a web page, if there are input fields, pressing Tab key switches them, but in a particular order, is there a way to change this order and set it to some different order? If this can be done in html, it is preferable, but if some other scripting language (javascript etc) can do it, it is also acceptable. 回答1: The attribute tabindex takes care of that http://www.w3.org/TR/WCAG-TECHS/H4.html to exclude a element completely from the tabindex give it a index of -1 the lowest safe index to start

Authenticate without using a server

十年热恋 提交于 2019-12-08 07:52:59
问题 I'm looking for ideas to authenticate a user without the usual trip to a server. Any semi-secure way of authenticating a user on the client side is acceptable. I'm think of storing some encrypted secret in a js file, then only users that have the correct code will be able to decrypt it, and the correct code can be either entered or stored in a cookie or something. Sound good, or any other ideas? 回答1: Take a look at oauth by client side javascript. Search google for 'oauth client side only'.

Open Source client-side Shopping Cart - jQuery/Cookies

随声附和 提交于 2019-12-06 16:16:42
问题 I am looking to implement something that appears to have "shopping cart" functionality, but is completely on the client-side. I can do this using jQuery and cookies (and I event found this Smart Cart 2 plugin for helping with a large part of it), but before I build it - Does anyone know of an existing solution that is completely client-side, and uses javascript (preferrably jQuery) and cookies? Also, other than the small percentage of users whose browsers don't support javascript and/or

Authenticate without using a server

我与影子孤独终老i 提交于 2019-12-06 14:45:44
I'm looking for ideas to authenticate a user without the usual trip to a server. Any semi-secure way of authenticating a user on the client side is acceptable. I'm think of storing some encrypted secret in a js file, then only users that have the correct code will be able to decrypt it, and the correct code can be either entered or stored in a cookie or something. Sound good, or any other ideas? Take a look at oauth by client side javascript. Search google for 'oauth client side only'. For example, this - https://developers.google.com/accounts/docs/OAuth2UserAgent I'm think of storing some