using sha 512 instead of 384