sha1 encryption algorithm realisation