According to wikipedia:
Quote:
A base 64 encoding is used to store password hashes computed with crypt in the /etc/passwd. Its alphabet starts with '.' for zero, then '/' for one, followed by 0-9, A-Z and a-z. Padding is not used.
|
To translate to standard base64 you can use tr:
Code:
% echo '08jUtpo6jck5fswOU3b0SoZhB8m4dfFU8hJ1WGoR8fUtmfXOZ/3DRX/W1AQii4C.kgGn6R9CPdrlwE0TIfMRN.' | tr ./0-9A-Za-z A-Za-z0-9+/
CKvg510IvowHr48agFnCe0ltNKyGprRgKtVDiS0dKrg5yrjalBFPdjBiDMcuuGOAwsSzIdLObp3x8QCfUrYdZA
Then you have to add padding, which will always be "==" for sha512 (3 - (512/8) mod 3 => 2).