Hardware Protection and Improved Security for GnuPG

SHG aims to provide a memory / hardware resistant reinforcement to GnuPG’s standard s2k key-derivation-function + a simplified interface for symmetric encryption .

VSHG ( Very secure hash generator ) is a standalone Addon for GnuPG ( Gnu privacy guard ) . It is written as a shell script and is designed around the Unix/Linux filesystem and commands. VSHG uses the sha384 and the Argon2 hash function for the password and AES-256-CFB + CAST5-128-CFB in cascade for the final encryption.

And also a standard sha384 iteration count of 800 iterations + 15 & 500 iterations for Argon2id  It uses True random 12 byte salts . So even if your passphrase is very weak , it will reinforce it so that you don’t have to worry about that anymore. VSHG uses the last hash of the Iteration as session key for Gnupg. It also provides an Autodetection function for each file so that you don’t have to remember either the salt or the iteration count.

GNUPG - GNU Privacy Guard
GNUPG – GNU Privacy Guard

Optionally you can use a key-file as authentication method.

Why is VSHG so secure ?

Weak Password ? No problem !

( Using a strong Passphrase is still recommended )

VSHG uses a true random salt for each encrypted file, so your Passphrase will always have a minimum of 12 bytes in strength. You could even use the same password twice for different files. The thing that makes VSHG so secure are the iterations. 800 iterations mean the output of the string is hashed 800x with its output. The more iterations the more security there will be. Even if you have the correct passphrase, but not the correct amount of iterations it will not be able to decrypt.

VSHG uses some of the most advanced forms of memory hard Key derivation functions which are Argon2i and Argon2d. The already iterated key will be passed through Argon2 a total of 515 times and therefore ensure the resistance against the biggest threats of Key derivation functions Namely: Graphical Processing Units, Field programmable gate arrays and Application specific integrated circuits ( GPU , FPEGA , ASIC ) .

The actual encryption is performed with the highest level of security possible in Gnupg.

  • The string to key ( s2k ) hash algo ( which is the KDF of Gnupg ) was reinforced from sha1 to sha512.
  • The s2k mode was set to 3 which means that an 8-bit salt is applied and then iterated.
  • The s2k count was set to 65011712 which is the highest possible number of iterations.
  • The s2k algo was set to AES256 and CAST5 in cascade.
  • The AES 256 encrypted file is securely deleted so that only the AES256(Cast5()) encrypted file is put out.

Why should I use VSHG ?

  • It is easier to use than GnuPG core.
  • Can encrypt folders by turning them into Zip files.
  • Someone that doesn´t have VSHG does not really have a chance of cracking the password.
  • True random 12 byte salt
  • choosable Iteration count.
  • choosable Salt.
  • choosable Keyfile.
  • True random Keyfile.
  • Very good resistance to side channel attacks ( e.g: timing attacks ).
  • Very resistant towards GPU based attacks
  • Can guarantee security even with relatively weak passwords ( > 5 characters ) ( if you have enough Iterations )
  • Autodetection of Salt + Iteration count for each file.
  • Military standard AES-256 encryption + the gpg standard CAST5 encryption.
  • Uses the gpg s2k mode 3 + sha512 with the maximum count of 65011712.
  • Erases Original file securely.

Download & Installation

  • Download as tarball
sudo wget https://github.com/RichardRMatthews/VSHG/archive/1.4.tar.gz

Or clone the repository

git clone https://github.com/RichardRMatthews/VSHG.git

  • Run
sudo tar -xf VSHG-1.4.tar.gz
sudo chmod +x VSHG_1.4.sh
sudo ./VSHG_1.4.sh

Recent Articles

Hackers Install Secret Backdoor on Thousands of Microsoft SQL Servers

Cybersecurity researchers today uncovered a sustained malicious campaign dating back to May 2018 that targets Windows machines running MS-SQL servers to deploy...

COVID-19: SentinelOne Offers Free Platform Access

As the world battles COVID-19, enterprises are coping with immediate work-from-home needs and the challenges of protection beyond the network perimeter, says...

XSS vulnerability in the HTML Data Processor for CKEditor 4.0

A cross-site scripting (XSS) vulnerability in the HTML Data Processor for CKEditor 4.0 before 4.14 allows remote attackers to inject arbitrary web...

Unpatchable Flaw Affects All Intel CPUs Released in Last 5 Years

All Intel processors released in the past 5 years contain an unpatchable vulnerability that could allow hackers to compromise almost every hardware-enabled...

Photon: Light and Fast Web Crawler

Photon is a lightning fast web crawler which extracts URLs, files, intel & endpoints from a target. 160 requests per second while extensive...

Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here

Stay on op - Ge the daily news in your inbox