shamir's scheme in jquery - javascript

I'm developing a secure key sharing mechanism for personal cloud users as a research project. For that I use Shamir's algorithm to split and reconstruct the key. I have to do that in client side. So I have to use JS or JQuery. If anyone have implemented this schema in Jquery help me.

here I found this schema implemented in java but what I want is JQuery
http://sourceforge.net/projects/secretsharejava/

Related

Accessing Firestore with 2 Languages

I'm developing an application to collect data with landing pages and access the database records from a crm. I would like to use javascript on the landing pages and develop the crm in .net core.
Is it possible to write to Firestore with javascript and read it in .NET Core? I can't find any useful information on this topic. Any links would be greatly appreciated. Thanks.
You can read and write to Firestore in any language you want that has the ability to do network access. That's because there is a public REST API that will work no matter what language you use to make the request.
You should also know that there is SDK support for all of the languages you see in the quickstart. It lists 13 environments. You should be able to find the specific SDK simply by doing a web search such as "firestore javascript sdk".
check the link below, firebase/firestore has support for both javascript and c#, which means yes you can write and read using both technologies.
Set up your development environment

Creating web application for first time

I am tasked with creating a web application using HTML 5, CSS3 and JavaScript.( For a study assignment) and I have decided I will be making a web app to record your workouts in regards to weight lifting(As well as thing such as graphs and a counter for days without skipping a workout etc..). But there are a few requirements I have to meet and do not fully understand and would appreciate if anyone could help me with any of these enquires.
I need to use in-built cloud storage to ensuring persistence of data through in-built cloud storage. But as I try to create my project to utilize in built cloud storage, I am informed I do not have any subscriptions is there a free alternative to do this, or am I required to obtain a subscription ?.
I have also chosen to use ASP.NET MVC template to create my desired application, and was wondering if you consider this the correct choice for the app I wish to create? .
I am also required to make use of a library/ libraries external to the application and could use some clarification of if this mean using something such as JQuery etc. or I am just not understanding the requirement correctly. ?.
Sorry for such a long winded post. I look forward and pre thank you for and points you can help clear up for me in advance as well as for any addition tip you think a learner could use in the development if there first web app.
If you are a student, then you can apply for a dreamspark subscription for Azure.
I'm a beginner just like you, and I've used ASP.NET MVC to build my first app.I don't think the framework is an important part in project which is for a study assignment. Just use the one that you like most.
There are some packages that I used in my app:
Newtonsoft.Json
JQuery
NInject
log4net
EntityFramework

Connecting to couch db from a webpage

I used to use mysql databases and a php backend for my web applications. Now that I am diving deeper into the the javascript world I am looking for a more compatible way to store my data. I like the idea of writing everything in one language, and javascript seems to be capable to make that job.
I started reading about couchDB and the JSON/javaScipt approach seems to fit perfectly to my needs. My question is now, which would be a convenient way to connect to the database from my pages.
I found this post, which explains how to connect to a couchDB directly from a client-side javascript using a library called couch.js. The post is quite a few years old and the library I cannot find anywhere in the web. So I am asking myself If this approach is still up to date.
I was thought that one important reason for using a server backend is to provide a security mechanism to protect the database authentification process. So: Is it generally secure to save an (encrypted) db pwd in a client side script?
So what I am looking for is a quite simple way to access and store json-like data from webpages. Are there any suggestions?
The hosting of the production solution should also be not that difficult and in the end not expansive, since it's rather meant for smaller projects at the moment.
If the post does not fit to the forum, let me know a better place for it..
I have been using the CouchDB jQuery Plugin for development. At first I was hesitant as well to use it due to most documentation being at least a few years old. So far it has worked really well and been very easy to use, especially if you are familiar with JavaScript/jQuery.
...
You can get the plugin from Github
CouchDB jQuery Plugin
Or you can save it directly from Futon:
http://localhost:5984/_utils/script/jquery.couch.js (where local host is your IP and 5984 is the port CouchDB is on)
Whatever you do, make sure you enable CORS on your database. There are instructions on the Github Readme page, or this script is super useful and easy to use through npm.
...
Documentation can be found here.
This reference has also been very useful for me.
...
Good luck!
I just released Slouch, a JavaScript client for CouchDB that can be used in both the browser and in node. I hope this helps!

CouchDB AJAX interaction

I'm writing a CouchDB sample. My intention is to write a web app using AJAX and deploy it in the tomcat environment. As I use the CouchDB I would like to know the way to interact with the CouchDB server. However there were few examples but I have few concerns over that.
1) As my application is deployed in a web server is it possible to connect with a CouchDB outside? Many examples uses apps which are deployed in CouchApp or Couch environment itself.
2) If so will it end up with cross domain issues. I found this in here
Connection AJAX, CouchDB and JavaScript
However will this be a problem? Is this the correct way to achieve this?
3) To omit above issues is it possible to use some server side javascript implementation as an example Rhino?
http://www.mozilla.org/rhino/doc.html
4) If I use Rhino above it wont allow many java script libraries to use. How do I interact with CouchDB then? Do I have to invoke native Javascript? Cant I use something like JQuery?
5) What are the best libraries for client side to achieve my goal?
Your help is appreciated.
Thank you
Based on your need to use tomcat, I would just recommend using ektorp (http://ektorp.org/). Just think of ektorp like a jdbc driver. No need to do ajax from the user interface, or no need to use javascript from java in your server.
Ektorp also lets you annotate your java classes with the javascript couchdb needs to make views. see the example here: http://ektorp.org/reference_documentation.html#d100e753
Hope that helps.

can we use couchdb for web application development?

I was wondering whether we can use java script for application development and use couchdb to serve it. I was also imagining jquery as the java script library. Do you think this is possible?
Check out using CouchApp. CouchApp allows you to build your application in JavaScript and host it out of CouchDB. Its a great way to learn CouchDB and its a very rapid development environment.
CouchApp
Sure you can. Following is a link to a blogging project being developed with couchdb as the backend and PHP as the front. Its open source so you might get some ideas by looking at its code.
Arik Blogging Software
Like others pointed out, CouchApps are one of they key features of CouchDB. CouchDB's built-in admin interface “Futon” is built that way. — The example application in CouchDB: The Definitive Guide (free online book) is also a CouchApp: http://guide.couchdb.org/

Categories