Showing posts from October, 2020

RSA + AES a double layer security system - Architecture + Implementation example - JAVA

Hello everyone, Today we will learn a double layer security system using RSA+AES, with the help of architecture visualization and one java example. Encryption's primary purpose is to protect against brute force attacks. It is composed of a cipher, the message/data, and a key (the password). With a wide range of free tools available like(Aircrack-ng, John the Ripper, Rainbow Crack, L0phtCrack ), even baby hackers can attempt to hack passwords using brute force. In my opinion, as a layperson in cryptography, multiple double-layer encryptions may not increase security, but it may slow down attackers. Using encryption may cause performance issues. Or maybe not. It really depends on how you use it. If you understand just how "expensive" each part of your enterprise encryption operation is, it's possible you can avoid the expensive parts and dramatically increase the performance of your applications. Let's see the architecture of the RSA + AES system This is the top lay

Reactive Rest CRUD APIs using Spring Boot, WebFlux, and Reactive Mongo

Hello everyone, Today we will learn how to use Spring Boot, Spring WebFlux, and Spring Data to create a reactive web service that interacts with MongoDB. Reactive APIs are non-blocking and tend to be more efficient because they’re not tying up processing while waiting for stuff to happen. Reactive systems adopt asynchronous I/O. Reactive apps allow us to scale better if we are dealing with lots of streaming data.  If we are going to build a reactive app, we need it to be reactive all the way down to your database. Use a blocking JDBC driver with Spring WebFlux, and we will be displeasure in its performance. Use a reactive NoSQL database like Cassandra, MongoDB, Couchbase, and Redis – and we will be satisfied with its performance. Spring WebFlux uses a library called Reactor for its reactive support. The Reactor is an implementation of the Reactive Streams specification. The Reactor Provides two main types called Flux and Mono . Both of these types implement the Publisher interface pr

ReactJS - Form

Hello everyone, Today we will learn how to validate a simple signup form in React JS.Form validation is the most important part of web development, through which we can restrict invalid entries and validate form details to some extent by using valid sets of checkpoints or validation rules. Why form validation on the client-side?  Form validation normally occurs on the server-side. This was really a lengthy process that used to put a lot of burden on the server. So, it will be a good choice if you add validation on the client side. Doing so improves application performance. Here we are using a simple signUP form and performing Client Side Validation using SignUpForm Component. Let's see the React JS signUP form with error messages below: Here we are validating the following entries, Name Email ID Mobile Number Password Directory Structure: Let's see the directory structure : SignUpForm.jsx This is a SignUpForm Component, it helps to render the signup form and validate the form d