Posts

Showing posts from June, 2021

List of Top Relational Databases - 2022

Image
A relational database refers to a database that stores data in a structured format, utilizing rows and columns. This makes it facile to locate and access concrete values within the database. It is "relational" because the values within each table are cognate to each other. Tables may withal be cognate to other tables. The relational structure makes it possible to run queries across multiple tables at once. Today, we will see a  list of top Relational databases. MySql MySQL is the most popular Open Source Relational SQL Database Management System. MySQL is one of the best RDBMS being used for developing various web-based software applications.MySQL runs on virtually all platforms, including Linux, UNIX, and Windows. Although it can be used in a wide range of applications, MySQL is most often associated with web applications and online publishing. https://www.mysql.com/ PostgreSQL PostgreSQL is an advanced, enterprise-class open-source relational database that fortifies both SQ

List of Top NoSQL Databases-2022

Image
NoSQL , which stands for “ not only SQL ,” is an approach to database design that can accommodate a wide variety of data models, including key-value, document, columnar, and graph formats. NoSQL  is an alternative to traditional relational databases in which data is placed in tables and data schema is meticulously designed before the database is built.  NoSQL  databases are especially utilizable for working with large sets of distributed data.  NoSQL Features & Capabilities  Performance  Availability  Multi-Model  Concurrency  Security  Scalability  Data Model Flexibility  Deployment Model Flexibility  Today, we will see a  list of top NoSQL databases. MongoDB MongoDB is a cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with optional schemas. Documents consist of key-value pairs which are the basic unit of data in MongoDB. Collections contain sets of documents and functions which is the equivalent of relati

Python - MD5 ,SHA-1, SHA-256, & SHA-512 Hashing

Image
What does Hashing mean? A secure password hash is an encrypted sequence of characters obtained after applying certain algorithms and manipulations on user-provided password, which are generally very weak and easy to guess. Please remember that once this password hash is generated and stored in the database, you can not convert it back to the original password. MD5 hash in Python The MD5 message-digest algorithm is a widely used hash function producing a 128-bit hash value. Although MD5 was initially designed to be used as a cryptographic hash function, it has been found to suffer from extensive vulnerabilities. It can still be used as a checksum to verify data integrity, but only against unintentional corruption. It remains suitable for other non-cryptographic purposes, for example for determining the partition for a particular key in a partitioned database. Example: Python  - MD5  hashing Use hashlib.md5() method to generate an MD5 hash value from a String. # Python3 code to demonstra

Node.js - AES Encryption and Decryption Example

Image
Advanced Encryption Standard is a symmetric encryption algorithm. AES encryption is used by the U.S. for securing sensitive but unclassified material, so we can say it is enough secure. I t allows 128 bit, 192 bit and 256-bit encryption. Symmetric encryption is very fast as compared to asymmetric encryption and are used in systems such as database system. The following illustration highlights how symmetric cryptography works: Example 1: AES 256 Encryption and Decryption //AES 256 Encryption Demo Program // crypto module const crypto = require( "crypto" ); // encrypt the message function encrypt(plainText, securitykey, outputEncoding, iv) { const cipher = crypto. createCipheriv( "aes-256-cbc" , securitykey, iv); return Buffer. concat([cipher.update(plainText), cipher.final()]). toString(outputEncoding); } //AES decryption function decrypt(cipherText, securitykey, outputEncoding, iv) { const cipher = crypto. createDeci

Node.js - MD5, SHA-1, SHA-256, SHA-384, SHA-512 Example

Image
What does Hashing mean? A secure password hash is an encrypted sequence of characters obtained after applying certain algorithms and manipulations on utilizer-provided passwords, which are generally very impotent and facile to conjecture. Please remember that once this password hash is engendered and stored in the database, you can not convert it back to the pristine password. Using MD5 algorithm The MD5 message-digest algorithm is a widely used hash function engendering a 128-bit hash value. Albeit MD5 was initially designed to be utilized as a cryptographic hash function, it has been found to suffer from extensive susceptibilities. It can still be utilized as a checksum to verify data integrity, but only against unintentional corruption. It remains felicitous for other non-cryptographic purposes, for example for determining the partition for a particular key in a partitioned database. Node.js MD5 Example: var crypto = require( 'crypto' ); var data = "Your Password"

Go Language - AES Encryption And Decryption Example

Image
Advanced Encryption Standard is a symmetric encryption algorithm. AES encryption is used by the U.S. for securing sensitive but unclassified material, so we can say it is enough secure. I t allows 128 bit, 192 bit and 256-bit encryption. Symmetric encryption is very fast as compared to asymmetric encryption and are used in systems such as database system. The following illustration highlights how symmetric cryptography works: Example: package main import ( "crypto/aes" "crypto/cipher" "crypto/rand" "encoding/hex" "fmt" "io" ) func main() { //generate a random 32 byte key key := GenerateRandomKey() //your secret text secret := "This is my password" //encryption encrypted := encrypt(secret, key) fmt.Printf( "encrypted data: %s\n" , encrypted) //decryption decrypted := decrypt(encrypted, key) fmt.Printf( "decrypted data: %s\n" , decry