Using Encrypted Fields in Searches
Searches and saved searches let you use custom fields with encrypted values. You can use encrypted fields in search results columns and in search filters, but only with a few operators (is, is not, is empty, is not empty). However, you can't use encrypted fields in search formulas, highlighting, summary results, or summary criteria.
SuiteScript doesn't support saved searches with encrypted values. Credit card numbers show up in search results only if you have the View Unencrypted Credit Card Numbers permission.
For more information about credit card number security, see Payment Card Number Security and Compliance.