feat: WEB-210 Replaced custom env with process.env
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import crypto from "crypto"
|
||||
|
||||
import { env } from "@/env/server"
|
||||
|
||||
export default function encryptValue(originalString: string) {
|
||||
const encryptionKey = process.env.BOOKING_ENCRYPTION_KEY ?? ""
|
||||
const encryptionKey = env.BOOKING_ENCRYPTION_KEY
|
||||
const bufferKey = Buffer.from(encryptionKey, "utf8")
|
||||
let cipher = crypto.createCipheriv("DES-ECB", bufferKey, null)
|
||||
cipher.setAutoPadding(false)
|
||||
|
||||
Reference in New Issue
Block a user