How to use our own made custom encryption scheme in mongodb

Can you please let us know.? Should we create our own made encryption and decryption scheme and work with MongoDB. It would be a search in database itself. I could not found any resource which tell us how we can apply our own encryption scheme which help in searching in database itself after encrypting with our own custom encryption.