Month: July 2018

Calculate Modular Exponentiation (PowerMod) in Javascript (a^p % n)

Calculate Modular Exponentiation (PowerMod) in Javascript (a^p % n)

Computing PowerMod is required for implementing public-key cryptography as it is used to encrypt and decrypt data. Calculating it by regular arithmetic (i.e. calculating pth power of a) doesn’t work with large numbers used for encryption. That’s where PowerMod helps, it calculates the result by keeping the numbers significantly small and within range of the integer data type.…

Read More Read More

Installing Visual Studio Code (VSCode) on Manjaro linux

Installing Visual Studio Code (VSCode) on Manjaro linux

Install from AUR (Method # 1) 1- Acquire build files from Arch Linux user repository. $ curl -L -O https://aur.archlinux.org/cgit/aur.git/snapshot/visual-studio-code-bin.tar.gz 2- Extract the downloaded package $ tar -xvf visual-studio-code-bin.tar.gz 3- Change directory to the extracted package $ cd visual-studio-code-bin 4- Build and install the package $ makepkg -si   Install using Yaourt (Method # 2) It…

Read More Read More