Implemented Libary encoding + RML Encryption