The security for data in the Ordered Bucketization (OB) as a cryptographic object. In OB, plaintext space is divided into p disjoint buckets, numbered from 1 to p, based on the order of the ranges that they cover. With bucketization, including OB, various types of SQL queries over encrypted data are possible, if the bucket number, which corresponds to the original plaintext before encryption, is attached to each encrypted data. Therefore, this method is very useful when users cannot store their data without encryption such as in a cloud computing environment. Due to lack in data security OB can be a replacement for an Order Preserving Encryption (OPE).