UNPKG

@onesy/utils

Version:
9 lines (7 loc) 231 B
import AES from 'crypto-js/aes'; import stringify from './stringify'; const encrypt = (value_, privateValue) => { const value = stringify(value_); return AES.encrypt(value, privateValue).toString(); }; export default encrypt;