Dir Enc&Dec ruby version