Implementing Encryption Feature in pdf-lib

Implementation of Encryption in pdf-lib and the gist of how encryption works in PDF specification