Implementation of DSA encryption algorithm