BASH Sha512 Password Hashing TUT

View previous topic View next topic Go down

BASH Sha512 Password Hashing TUT

Post by jamied_uk on 13th June 2016, 21:06

Code:
doveadm pw -s SHA512-CRYPT -t string

man doveadm

echo -n foobar | sha256sum

echo -n foobar | sha512sum

https://stackoverflow.com/questions/3358420/generating-a-sha256-from-the-linux-command-line

avatar
jamied_uk
Admin

Posts : 2260
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

Re: BASH Sha512 Password Hashing TUT

Post by jamied_uk on 13th June 2016, 21:50





Code:
#!/bin/bash
# type ./test.sh
clear
echo Please Type String / Password To Hash
read arg1
echo You Typed: $arg1
echo Please Type sha512sum, sha512 or sha256 To Select Type
read arg2
echo You Chose Type: $arg2
# sha512sum
echo -n $arg1 | $arg2
avatar
jamied_uk
Admin

Posts : 2260
Join date : 2010-05-09
Age : 34
Location : UK

http://address-shortner.co.uk

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum