Coder Social home page Coder Social logo

mvctoclientencryption's Introduction

Mvc To Client Encryption

An example on how to encrypt data sent from C# MVC to UI JavaScript app

If you write JavaScript code that depends on data received from the C# MVC, you should be careful that the JavaScript app does not fully trust the data it received from the C# MVC back-end.

When you send data from C# MVC back-end to the JS in the client app, you no longer control the data. The data is now in the browser memory storage.

Users can try to confuse your JS client app by editing the data stored in the browser memory in order to make your JS app behave in ways that it should not.

This repo shows a simple way to make passing data from the C# MVC to the JavaScript app by encrypting the data being sent.

Using this encryption WILL NOT secure your data. It simply makes it harder for someone to inspect and manipulate the data your JavaScript app is receiving from the C# MVC back-end.

Please do not rely on this approach to consider your JavaScript app fully secure. Test your JavaScript app for possible data manipulation.

mvctoclientencryption's People

Contributors

kbarkhausen avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.