예제 #1
0
 def encrypt(self, *args, **kwds):
     """use a non-flat scheme for generating a key"""
     return pickle(keymap.encrypt(self, *args, **kwds),
                   serializer=self.__type__,
                   byref=True)  # for dill  # separator=(',',':') for json
예제 #2
0
 def encode(self, *args, **kwds):
     """use a flattened scheme for generating a key"""
     return pickle(keymap.encode(self, *args, **kwds), serializer=self.__type__, **self._config) # separator=(',',':') for json
예제 #3
0
 def encrypt(self, *args, **kwds):
     """use a non-flat scheme for generating a key"""
     return pickle(
         keymap.encrypt(self, *args, **kwds), serializer=self.__type__, byref=True
     )  # for dill  # separator=(',',':') for json
예제 #4
0
 def encode(self, *args, **kwds):
     """use a flattened scheme for generating a key"""
     return pickle(keymap.encode(self, *args, **kwds), serializer=self.__type__, **self._config) # separator=(',',':') for json